News for hackers. Stuff that matters.
Re:Beware of strncpy and strncat by matheusmoreira on Wednesday June 06, 2018 @12:27PM (#17248495)
I think he's right. Treating strings as if they were normal arrays makes things easier and more uniform. The size of arrays should always be known.

I still keep the NUL terminator around for compatibility reasons. Linux system calls don't need the NUL, but other C code might depend on it.

There are no comments on this comment yet.