commit | 15a011c43daa06d452f91cbf386d9daf93d568df | [log] [tgz] |
---|---|---|
author | Erik de Castro Lopo <erikd@mega-nerd.com> | Tue Mar 19 20:14:26 2013 +1100 |
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | Tue Mar 19 20:15:49 2013 +1100 |
tree | 3f4adaf8ee80abdde592c10e4491229243a9c29a | |
parent | 619b43df36b725e11e12db768d558b1930a583b6 [diff] |
Add new file include/share/safe_str.h. New functions safe_strncat() and safe_strncpy() which always return a NUL terminated string and do not overflow the destination buffer.