From e9d8c4516847e3d8b36f384fb662b1a490f76f4e Mon Sep 17 00:00:00 2001 From: Ben Huntsman Date: Sun, 29 Aug 2021 13:38:35 -0700 Subject: [PATCH] libdraw: Fix GUI programs on AIX (#398) --- src/libdraw/string.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libdraw/string.c b/src/libdraw/string.c index 5ba5016a..4f08b1b8 100644 --- a/src/libdraw/string.c +++ b/src/libdraw/string.c @@ -81,7 +81,11 @@ _string(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Rune *r, i }else rptr = &r; sf = nil; +#if defined(__AIX__) + while((*s || *rptr) && len){ +#else while((*s || *r) && len){ +#endif max = Max; if(len < max) max = len;