aboutsummaryrefslogtreecommitdiffstats
path: root/misc/haiku/nm.cpp
diff options
context:
space:
mode:
authorGravatar Saagar Jha <saagar@saagarjha.com>2020-04-11 17:35:14 -0700
committerGravatar GitHub <noreply@github.com>2020-04-12 06:05:14 +0530
commit3bab34e962f3c1b6167afcefb81aa1f1117f7794 (patch)
tree6dfebfbae970a566a0e863e227a8a00bf453e216 /misc/haiku/nm.cpp
parent2115d75ac6a14b6381dbff85d9042a09b01d28c2 (diff)
downloadnnn-3bab34e962f3c1b6167afcefb81aa1f1117f7794.tar.gz
Opinionated xstrlcpy changes (#513)
* Unvectorize xstrlcpy On all libcs I could find, memcpy does a better job than we can. * Rename xstrlcpy to xstrsncpy to avoid confusion The semantics of our xstrlcpy differed slightly from strlcpy; we return the number of copied characters; strlcpy returns the strlen(src). strscpy from Linux is similar except it returns the number of copied characters sans the NUL byte, so this is named strsncpy to be different.
Diffstat (limited to 'misc/haiku/nm.cpp')
0 files changed, 0 insertions, 0 deletions