blob: 49a98c4a4cd7af9cc907112cc4a6b4084a867259 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- reduce.c.orig Thu Oct 13 04:36:44 2005
+++ reduce.c Thu Oct 13 04:37:02 2005
@@ -178,7 +178,7 @@
/* get destination image */
depth = colorsToDepth(OutColors);
new_image = newRGBImage(image->width, image->height, depth);
- sprintf(buf, "%s (%d colors)", image->title, OutColors);
+ snprintf(buf, sizeof(buf), "%s (%d colors)", image->title, OutColors);
new_image->title = dupString(buf);
new_image->gamma = image->gamma;
|