irungentoo/ProjectTox-Core — pull request #277 by CharmlessCoin (2013-08-03 00:03:01+00:00)
Title: nTox cleanups

nTox was using strcpy in new_lines, which was vulnerable to overwriting the lines buffer if a line was greater than STRING_LENGTH characters long. Changed that to strncpy, and wrote a get_id() function, as the same procedure was repeated twice in the file.