* Fix stdout/stderr copying. Don't use fprintf for something that can

have null bytes (lol @ me).
This commit is contained in:
Sam Hocevar
2006-12-22 17:01:16 +00:00
committed by sam
parent 37cb8cd872
commit 1b5ba510be
+1 -5
View File
@@ -308,11 +308,7 @@ int main(int argc, char *argv[])
/* We got data */
child_list[i].bytes += ret;
if(!quiet)
{
buf[ret] = '\0';
fprintf(j ? stdout : stderr, "%s", buf);
}
continue;
fwrite(buf, ret, 1, j ? stdout : stderr);
}
else if(ret == 0)
{