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>
This commit is contained in:
Michael Natterer
2000-12-27 20:51:09 +00:00
committed by Michael Natterer
parent c6ea8d673f
commit b45bde77da
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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);