We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bcdbc4 commit 00453d3Copy full SHA for 00453d3
src/core/t-image.c
@@ -352,7 +352,7 @@ INLINE REBCNT ARGB_To_BGR(REBCNT i)
352
// Output RGB image:
353
size = VAL_IMAGE_LEN(value); // # pixels (from index to tail)
354
data = (REBCNT *)VAL_IMAGE_DATA(value);
355
- up = Prep_Uni_Series(mold, (size * 6) + (size / 10) + 1);
+ up = Prep_Uni_Series(mold, (size * 6) + ((size - 1) / 10) + 1);
356
357
for (len = 0; len < size; len++) {
358
if ((len % 10) == 0) *up++ = LF;
0 commit comments