Conversation

After 4 years the strlcpy() API has been fully removed from the Linux kernel. Long live strscpy().
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d26270061ae66b915138af7cd73ca6f8b85e6b44

Next up, strncpy()!
https://github.com/KSPP/linux/issues/90

2
10
3
@kees Curious why the kernel hasn't widely adopted a string + len struct? Any explanation?
0
0
0
@kees Yep, that broke my build. Did #define strlcpy strscpy and now it works again! :-). @airtower That's the staging #rtw8723cs , so I guess the semantic difference won't matter much. (/me Ducks and runs).
1
0
0

@pavel @kees Depends on whether you'd rather replace a few strlcpy() or implement TX in the new driver! meowGiggle

0
0
0