Revision: 76544
          http://sourceforge.net/p/brlcad/code/76544
Author:   brlcad
Date:     2020-07-28 05:43:26 +0000 (Tue, 28 Jul 2020)
Log Message:
-----------
need the fd, not fp

Modified Paths:
--------------
    brlcad/trunk/src/util/dpix-pix.c

Modified: brlcad/trunk/src/util/dpix-pix.c
===================================================================
--- brlcad/trunk/src/util/dpix-pix.c    2020-07-28 04:59:37 UTC (rev 76543)
+++ brlcad/trunk/src/util/dpix-pix.c    2020-07-28 05:43:26 UTC (rev 76544)
@@ -139,7 +139,7 @@
            *cp++ = mm * (*dp++) + bb;
        }
 
-       got = write(stdout, (char *)&cha[0], count*sizeof(cha[0]));
+       got = write(fileno(stdout), (char *)&cha[0], count*sizeof(cha[0]));
        if (got < 0 || (size_t)got != count*sizeof(cha[0])) {
            perror("write");
            exit(2);

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to