> It looks like the maximum length of d_name is defined as NAME_MAX or > FILENAME_MAX in POSIX. just using them would be simple but if there are > any > platforms not following it, your patch looks better indeed. You're right, I think we could also rely on NAME_MAX instead of strlen. I hadn't thought of that. Raimund -- Worringer Str 31 Duesseldorf 40211 DE home: <rs@xxxxxxxx> +49-179-2981632 icq 16845346 work: <rs@xxxxxxxxxxxxxxx> _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/fontconfig