> Perhaps we should start development of a standardized 'safe' header file
> that can contain macros for snprintf, strncat and the like.
>
> Example:
> #define safe_snprinf(dst,len,fmt,var)
> snprintf(dst,(len>sizeof(dst)-1)?sizeof(dst)-1:len,fmt,var)
>
> #define safe_strca...
> Perhaps we should start development of a standardized 'safe' header file
> that can contain macros for snprintf, strncat and the like.
>
> Example:
> #define safe_snprinf(dst,len,fmt,var)
> snprintf(dst,(len>sizeof(dst)-1)?sizeof(dst)-1:len,fmt,var)
>
> #define safe_strca...
[ more ]