News for hackers. Stuff that matters.
Re:Stop using strncpy already by dchichkov on Thursday April 04, 2013 @04:44AM (#5491622)
Just FYI - code: sizeof buffer - sizeof(buffer[0])

is looking unconventional. Couple of reasons... You generally want to avoid +1 / -1 in your code. You don't want to write sizeof() without parenthesis, - it reduces readability.

Re:Stop using strncpy already by pitkali on Thursday April 04, 2013 @06:38AM (#5491870)
Pop quiz: what are possible results of running sizeof(char)? It's just another thing to note ;)