3 ms·
Edited: Looks like they have safe alternatives: " - strlcpy() if you really just need a truncated but NUL-terminated string (we provide a compat version,
by dgentile 6y ago
Edited:
Looks like they have safe alternatives:
"
- strlcpy() if you really just need a truncated but
NUL-terminated string (we provide a compat version, so
it's always available)
- xsnprintf() if you're sure that what you're copying
should fit
- strbuf or xstrfmt() if you need to handle
arbitrary-length heap-allocated strings
"