> strerror.c appears to need intprops only for its
> definition of the INT_STRLEN_BOUND macro, used here:
> 
>   {
>     char *result = strerror (n);
> 
>     if (result == NULL || result[0] == '\0')
>       {
>         static char const fmt[] = "Unknown error (%d)";
>         static char mesg[sizeof fmt + INT_STRLEN_BOUND (n)];
>         sprintf (mesg, fmt, n);
> 
> Just remove the inclusion of intprops.h
> and instead define INT_STRLEN_BOUND to whatever constant
> e.g., INT_STRLEN_BOUND(int64_t) evaluates to.

Yeah, sizeof fmt + 20 should be enough...

Paolo


Reply via email to