Commit b45bde77 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

the size of the string holding the image data was one byte too short (we

2000-12-27  Michael Natterer  <mitch@gimp.org>

	* plug-ins/common/csource.c: the size of the string holding the
	image data was one byte too short (we forgot the trailing '\0').
	Reported by <goswin.brederlow@student.uni-tuebingen.de>
parent c6ea8d67
2000-12-27 Michael Natterer <mitch@gimp.org>
* plug-ins/common/csource.c: the size of the string holding the
image data was one byte too short (we forgot the trailing '\0').
Reported by <goswin.brederlow@student.uni-tuebingen.de>
2000-12-27 Sven Neumann <sven@gimp.org>
* TODO.xml
......
......@@ -502,9 +502,9 @@ save_image (Config *config,
s_uint_8,
config->use_rle ? "rle_" : "");
if (config->use_rle)
fprintf (fp, "%u];\n", img_buffer_end - img_buffer);
fprintf (fp, "%u + 1];\n", img_buffer_end - img_buffer);
else
fprintf (fp, "%u * %u * %u];\n",
fprintf (fp, "%u * %u * %u + 1];\n",
drawable->width,
drawable->height,
config->alpha ? 4 : 3);
......@@ -583,7 +583,7 @@ save_image (Config *config,
if (config->use_rle)
fprintf (fp, "%u] =\n", img_buffer_end - img_buffer);
else
fprintf (fp, "%u * %u * %u] =\n",
fprintf (fp, "%u * %u * %u + 1] =\n",
drawable->width,
drawable->height,
config->alpha ? 4 : 3);
......
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