diff options
| author | 2020-04-11 17:35:14 -0700 | |
|---|---|---|
| committer | 2020-04-12 06:05:14 +0530 | |
| commit | 3bab34e962f3c1b6167afcefb81aa1f1117f7794 (patch) | |
| tree | 6dfebfbae970a566a0e863e227a8a00bf453e216 /misc/haiku/nm.cpp | |
| parent | 2115d75ac6a14b6381dbff85d9042a09b01d28c2 (diff) | |
| download | nnn-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