libdraw: Fix GUI programs on AIX (#398)

This commit is contained in:
Ben Huntsman 2021-08-29 13:38:35 -07:00 committed by Dan Cross
parent 6c4260fc67
commit e9d8c45168

View file

@ -81,7 +81,11 @@ _string(Image *dst, Point pt, Image *src, Point sp, Font *f, char *s, Rune *r, i
}else }else
rptr = &r; rptr = &r;
sf = nil; sf = nil;
#if defined(__AIX__)
while((*s || *rptr) && len){
#else
while((*s || *r) && len){ while((*s || *r) && len){
#endif
max = Max; max = Max;
if(len < max) if(len < max)
max = len; max = len;