generic: strncpy with in == out causes signal 6 if built on OS X 10.9, fixes #385

(If built on older OS X versions, the game works on 10.9 though.)