News for hackers. Stuff that matters.
Re:Improving kernel string handling by agumonkey on Thursday May 14, 2015 @12:05PM (#9545900)
I could further into the rant, I'm ...stunned by parsing logic crippled as type specific functions.

Why does `strscpy_truncate(dst,src,count)` exist at all ? it seem like a generic buffer/array `take(dst,src,count)`. And how problematic would be to use a compiled regex to parse "major:minor", or proper logic by seeking for ':' and read before after that point.

Re:Improving kernel string handling by to3m on Thursday May 14, 2015 @01:34PM (#9546369)
The strcpy-type functions stop after they read a '\x0'. They are not like memcpy!