Commit 682bf815 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

open the file in binary mode. Pointed out by Aurimas Juska; fixes bug

2006-08-14  Sven Neumann  <sven@gimp.org>

	* plug-ins/winicon/icoload.c: open the file in binary mode.
	Pointed out by Aurimas Juska; fixes bug #172503.
parent 287859cc
2006-08-14 Sven Neumann <sven@gimp.org>
* plug-ins/winicon/icoload.c: open the file in binary mode.
Pointed out by Aurimas Juska; fixes bug #172503.
2006-08-14 Sven Neumann <sven@gimp.org>
* app/tools/gimprectangletool.c (gimp_rectangle_tool_motion):
......
......@@ -130,7 +130,7 @@ ico_init (const gchar *filename,
{
memset (ico, 0, sizeof (MsIcon));
if (! (ico->fp = g_fopen (filename, "r")))
if (! (ico->fp = g_fopen (filename, "rb")))
{
g_message (_("Could not open '%s' for reading: %s"),
gimp_filename_to_utf8 (filename), g_strerror (errno));
......
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