]> diplodocus.org Git - nmh/commit
If str == buffer, then do NOT do a strncpy(buffer, str). Many systems
authorKen Hornstein <kenh@pobox.com>
Sun, 23 Aug 2015 02:16:22 +0000 (22:16 -0400)
committerKen Hornstein <kenh@pobox.com>
Sun, 23 Aug 2015 02:16:22 +0000 (22:16 -0400)
commitba8b265a8211b2052b424dc9bd7ea391a8ded87a
tree5fc51b0ac808406ba1f3371dff891bb7e1f3d8fc
parentacd522420b147129e39215dce421a8b4601d6194
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.
sbr/fmt_scan.c