Changed fopen parameters for portability.
--Sven
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Fri May 29 21:36:36 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/xcf.c: changed fopen parameters for better portability
|
||||||
|
|
||||||
Thu May 28 20:12:02 MEST 1998 Sven Neumann <sven@gimp.org>
|
Thu May 28 20:12:02 MEST 1998 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* scripts/blend-anim.scm: use gimp-message to output an
|
* scripts/blend-anim.scm: use gimp-message to output an
|
||||||
|
@ -294,7 +294,7 @@ xcf_load_invoker (Argument *args)
|
|||||||
|
|
||||||
filename = args[1].value.pdb_pointer;
|
filename = args[1].value.pdb_pointer;
|
||||||
|
|
||||||
info.fp = fopen (filename, "r");
|
info.fp = fopen (filename, "rb");
|
||||||
if (info.fp)
|
if (info.fp)
|
||||||
{
|
{
|
||||||
info.cp = 0;
|
info.cp = 0;
|
||||||
@ -362,7 +362,7 @@ xcf_save_invoker (Argument *args)
|
|||||||
gimage = gimage_get_ID (args[1].value.pdb_int);
|
gimage = gimage_get_ID (args[1].value.pdb_int);
|
||||||
filename = args[3].value.pdb_pointer;
|
filename = args[3].value.pdb_pointer;
|
||||||
|
|
||||||
info.fp = fopen (filename, "w");
|
info.fp = fopen (filename, "wb");
|
||||||
if (info.fp)
|
if (info.fp)
|
||||||
{
|
{
|
||||||
info.cp = 0;
|
info.cp = 0;
|
||||||
|
@ -294,7 +294,7 @@ xcf_load_invoker (Argument *args)
|
|||||||
|
|
||||||
filename = args[1].value.pdb_pointer;
|
filename = args[1].value.pdb_pointer;
|
||||||
|
|
||||||
info.fp = fopen (filename, "r");
|
info.fp = fopen (filename, "rb");
|
||||||
if (info.fp)
|
if (info.fp)
|
||||||
{
|
{
|
||||||
info.cp = 0;
|
info.cp = 0;
|
||||||
@ -362,7 +362,7 @@ xcf_save_invoker (Argument *args)
|
|||||||
gimage = gimage_get_ID (args[1].value.pdb_int);
|
gimage = gimage_get_ID (args[1].value.pdb_int);
|
||||||
filename = args[3].value.pdb_pointer;
|
filename = args[3].value.pdb_pointer;
|
||||||
|
|
||||||
info.fp = fopen (filename, "w");
|
info.fp = fopen (filename, "wb");
|
||||||
if (info.fp)
|
if (info.fp)
|
||||||
{
|
{
|
||||||
info.cp = 0;
|
info.cp = 0;
|
||||||
|
Reference in New Issue
Block a user