|
|
@ -629,7 +629,7 @@ show_version(void) |
|
|
static void |
|
|
static void |
|
|
append_to_stream(FILE *dest, FILE *source) |
|
|
append_to_stream(FILE *dest, FILE *source) |
|
|
{ |
|
|
{ |
|
|
char *buf[BSIZE_SP]; |
|
|
|
|
|
|
|
|
char buf[BSIZE_SP]; |
|
|
int i; |
|
|
int i; |
|
|
|
|
|
|
|
|
while ((i = fread(buf, 1, BSIZE_SP, source)) > 0) |
|
|
while ((i = fread(buf, 1, BSIZE_SP, source)) > 0) |
|
|
@ -1084,6 +1084,11 @@ bot: |
|
|
} |
|
|
} |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if(!tempfile) { |
|
|
|
|
|
perror("tmpfile()"); |
|
|
|
|
|
exit(1); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (optind == argc && !istty) { |
|
|
if (optind == argc && !istty) { |
|
|
append_to_stream(tempfile, stdin); |
|
|
append_to_stream(tempfile, stdin); |
|
|
} |
|
|
} |
|
|
|