X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fdata%2Fsack.c;h=0a1ada7fdaab03ed351768b7ae8e4f53e5e860ad;hb=bcaaaebdde43e26a8d27c53590f34bf29eb56406;hp=006d73f1c93f214a3232b0d199abb6ec03d80faf;hpb=68ae62595cb0507622afda5568a3a20e28857f88;p=pspp diff --git a/tests/data/sack.c b/tests/data/sack.c index 006d73f1c9..0a1ada7fda 100644 --- a/tests/data/sack.c +++ b/tests/data/sack.c @@ -38,6 +38,7 @@ #include "gl/intprops.h" #include "gl/progname.h" #include "gl/xalloc.h" +#include "gl/xbinary-io.h" struct buffer { @@ -704,7 +705,9 @@ main (int argc, char **argv) if (input != stdin) fclose (input); + xset_binary_mode (fileno (stdout), O_BINARY); fwrite (output.data, output.size, 1, stdout); + free (output.data); return 0; }