#1712: Retire snprintf.c -----------------------+---------------------------------------------------- Reporter: eschnett | Owner: Type: task | Status: reopened Priority: minor | Milestone: Component: Other | Version: development version Resolution: | Keywords: -----------------------+---------------------------------------------------- Changes (by rhaas):
* status: closed => reopened * resolution: fixed =>
Comment:
When retiring snprintf, the related function strdup was also retired. However strdup is not in C99 but in BSD/POSIX and thus is not available by default. In C it is implicitly declared to return int which fails if the actual returned pointer is larger than 32 bits. The branch
https://bitbucket.org/cactuscode/cactus/branch/rhaas%2Fcheck-for-PI-and- strdup
provides configure checks for this routine.