commit | 5369517b2cd0437a603ab7b33b499062804ae141 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sat May 10 13:24:58 2014 -0500 |
committer | Rob Landley <rob@landley.net> | Sat May 10 13:24:58 2014 -0500 |
tree | 242e30c8b5aec0314a7b90c92aba7c56c5a9c454 | |
parent | 6ef8ce45ae3adae2bd6a36781a6d7f60122548f2 [diff] |
sizeof("string") treats it as a char array _including_ the null terminator, so strncmp(dest, "string", sizeof("string")) is just strcpy.