Removed check for empty input
This commit is contained in:
parent
72bb13b59d
commit
a97e6b1963
|
@ -96,7 +96,6 @@ device_read(void)
|
||||||
char c, *origin = dst_;
|
char c, *origin = dst_;
|
||||||
while(fread(&c, 1, 1, stdin) && c >= ' ') *dst_++ = c;
|
while(fread(&c, 1, 1, stdin) && c >= ' ') *dst_++ = c;
|
||||||
if(feof(stdin)) dst_ = copy("EOF", dst_, 3);
|
if(feof(stdin)) dst_ = copy("EOF", dst_, 3);
|
||||||
if(dst_ - origin == 0) dst_--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
|
|
Loading…
Reference in New Issue