X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=conout.c;h=7e8cd9ad8f40a4c5768db4d52ae308184c357b42;hp=8613ece127e502c01123dfb00e6a96ca525b6537;hb=160e7cf7eebd7fa173fb739aca00143097a3518b;hpb=d27c06ea7fb9f55ea4014851af2b219732b657ef diff --git a/conout.c b/conout.c index 8613ece..7e8cd9a 100644 --- a/conout.c +++ b/conout.c @@ -168,7 +168,7 @@ static int win_fputs(FILE *h, const char *str) { state = -1; } } else { - fs_file_putc(h, *str); + fs_file_write(str, 1, 1, stdout); length ++; } str++; @@ -282,17 +282,13 @@ int con_change(const char *out, const char *err) { con_enablecolor(); } else if (!(console.handle_err = fs_file_open(err, "w"))) return 0; - /* no buffering */ - setvbuf(console.handle_out, NULL, _IONBF, 0); - setvbuf(console.handle_err, NULL, _IONBF, 0); - return 1; } /* * Defaultizer because stdio.h shouldn't be used anywhere except here * and inside file.c To prevent mis-match of wrapper-interfaces. - */ + */ FILE *con_default_out() { return (console.handle_out = stdout); }