News for hackers. Stuff that matters.
Re:Massacring C Pointers by saagarjha on Tuesday June 26, 2018 @02:32AM (#17398353)
> Inconsistent Variable declaration

How so?

> I would have used strcpy 2 times

You can't do this, because strcpy doesn't give you the length of the string you copied, which is necessary to put the trailing null byte.

Re:Massacring C Pointers by scatters on Tuesday June 26, 2018 @04:51AM (#17398888)
strcpy writes a trailing zero.

> The strcpy() function copies the string pointed to by src, including the terminating null byte ('\0'), to the buffer pointed to by dest.

Re:Massacring C Pointers by saagarjha on Wednesday June 27, 2018 @02:46AM (#17406219)
Yup, I'm aware of that, but the author of that code sure isn't ;)