Skip to content

Commit cb1214c

Browse files
author
Cristy
committed
...
1 parent 0daf227 commit cb1214c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: coders/meta.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2204,7 +2204,7 @@ static int format8BIM(Image *ifile, Image *ofile)
22042204
return -1;
22052205
}
22062206
/* make a buffer to hold the data and snag it from the input stream */
2207-
str=(unsigned char *) AcquireQuantumMemory((size_t) count,sizeof(*str));
2207+
str=(unsigned char *) AcquireQuantumMemory((size_t) count+1,sizeof(*str));
22082208
if (str == (unsigned char *) NULL)
22092209
{
22102210
PString=(unsigned char *) RelinquishMagickMemory(PString);

0 commit comments

Comments
 (0)