[gimp] plug-ins: use g_fopen(filename, "w+b") instead of "wb+" to fix SGI format export on the Microsoft Wi



commit c93727e7917eccd13c0a3e8ba290630eed8b4bd8
Author: Michael Schumacher <schumaml gmx net>
Date:   Fri Jun 15 07:59:43 2018 +0000

    plug-ins: use g_fopen(filename, "w+b") instead of "wb+" to fix SGI format export on the Microsoft Windows 
platforms

 plug-ins/file-sgi/sgi-lib.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plug-ins/file-sgi/sgi-lib.c b/plug-ins/file-sgi/sgi-lib.c
index c26e24e883..3b68ac93a2 100644
--- a/plug-ins/file-sgi/sgi-lib.c
+++ b/plug-ins/file-sgi/sgi-lib.c
@@ -260,7 +260,7 @@ sgiOpen(const char *filename,       /* I - File to open */
   if (mode == SGI_READ)
     file = g_fopen(filename, "rb");
   else
-    file = g_fopen(filename, "wb+");
+    file = g_fopen(filename, "w+b");
 
   if (file == NULL)
     return (NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]