Revision: 76550
          http://sourceforge.net/p/brlcad/code/76550
Author:   brlcad
Date:     2020-07-28 08:10:00 +0000 (Tue, 28 Jul 2020)
Log Message:
-----------
it's a binary reader, must open file in binary road

Modified Paths:
--------------
    brlcad/trunk/src/libbn/tabdata.c

Modified: brlcad/trunk/src/libbn/tabdata.c
===================================================================
--- brlcad/trunk/src/libbn/tabdata.c    2020-07-28 07:37:26 UTC (rev 76549)
+++ brlcad/trunk/src/libbn/tabdata.c    2020-07-28 08:10:00 UTC (rev 76550)
@@ -928,7 +928,7 @@
     len = num * nbytes;
 
     bu_semaphore_acquire(BU_SEM_SYSCALL);
-    fd = open(filename, 0);
+    fd = open(filename, O_RDONLY|O_BINARY);
     bu_semaphore_release(BU_SEM_SYSCALL);
     if (fd <= 0)  {
        perror(filename);

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