[gimp] plug-ins: use g_fopen(filename, "w+b")...



commit 541f730f441547b5822f8949548924241fe85e94
Author: Simon Mueller <s mueller hn web de>
Date:   Fri Jun 15 10:22:24 2018 +0200

    plug-ins: use g_fopen(filename, "w+b")...
    
    ...because g_fopen(filename, "wb+") fails on Windows.

 plug-ins/common/curve-bend.c | 2 +-
 plug-ins/gfig/gfig.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/curve-bend.c b/plug-ins/common/curve-bend.c
index 6b328ff829..ce6230a898 100644
--- a/plug-ins/common/curve-bend.c
+++ b/plug-ins/common/curve-bend.c
@@ -833,7 +833,7 @@ p_save_pointfile (BenderDialog *cd,
   gint j;
   FILE *l_fp;
 
-  l_fp = g_fopen(filename, "wb+");
+  l_fp = g_fopen(filename, "w+b");
   if (!l_fp)
     {
       g_message (_("Could not open '%s' for writing: %s"),
diff --git a/plug-ins/gfig/gfig.c b/plug-ins/gfig/gfig.c
index f1a3d990c1..0bd8faf21a 100644
--- a/plug-ins/gfig/gfig.c
+++ b/plug-ins/gfig/gfig.c
@@ -787,7 +787,7 @@ gfig_save_callbk (void)
 
   savename = gfig_context->current_obj->filename;
 
-  fp = g_fopen (savename, "wb+");
+  fp = g_fopen (savename, "w+b");
 
   if (!fp)
     {


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