meta-wayland/recipes-graphics/aalib/aalib/aalib-free-offset-pointer.patch
Markus Volk c38db22ef6 aalib: add various patches
upstream is long dead, add various fixes
2024-05-28 01:31:47 +02:00

15 lines
404 B
Diff

--- a/src/aarender.c
+++ b/src/aarender.c
@@ -63,10 +63,10 @@ void aa_renderpalette(aa_context * c, __
errors[0] = calloc(1, (x2 + 5) * sizeof(int));
if (errors[0] == NULL)
dither = AA_ERRORDISTRIB;
- errors[0] += 3;
errors[1] = calloc(1, (x2 + 5) * sizeof(int));
if (errors[1] == NULL)
free(errors[0]), dither = AA_ERRORDISTRIB;
+ errors[0] += 3;
errors[1] += 3;
cur = 0;
}