summaryrefslogtreecommitdiff
path: root/key.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2016-08-02 12:16:34 +1000
committerDarren Tucker <dtucker@zip.com.au>2016-08-02 12:16:34 +1000
commit20e5e8ba9c5d868d897896190542213a60fffbd2 (patch)
treea812e7db9009b53412f3421d4ca1a12434ab6c17 /key.c
parentb0b48beab1b74100b61ecbadb9140c9ab4c2ea8c (diff)
Explicitly test for broken strnvis.
NetBSD added an strnvis and unfortunately made it incompatible with the existing one in OpenBSD and Linux's libbsd (the former having existed for over ten years). Despite this incompatibility being reported during development (see http://gnats.netbsd.org/44977) they still shipped it. Even more unfortunately FreeBSD and later MacOS picked up this incompatible implementation. Try to detect this mess, and assume the only safe option if we're cross compiling. OpenBSD 2.9 (2001): strnvis(char *dst, const char *src, size_t dlen, int flag); NetBSD 6.0 (2012): strnvis(char *dst, size_t dlen, const char *src, int flag); ok djm@
Diffstat (limited to 'key.c')
0 files changed, 0 insertions, 0 deletions