From: Ken Hornstein Date: Sun, 23 Aug 2015 02:16:22 +0000 (-0400) Subject: If str == buffer, then do NOT do a strncpy(buffer, str). Many systems X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/ba8b265a8211b2052b424dc9bd7ea391a8ded87a?ds=inline;hp=ba8b265a8211b2052b424dc9bd7ea391a8ded87a If str == buffer, then do NOT do a strncpy(buffer, str). Many systems this works, but on some systems it causes a SIGABRT. POSIX says the behavior on overlapping copies with str*cpy() is officially undefined. ---