Commit aac95860 authored by Simon Mueller's avatar Simon Mueller Committed by Michael Natterer

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

...because g_fopen(filename, "wb+") fails on Windows.

(cherry picked from commit 541f730f)
parent 73c67d96
......@@ -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"),
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment