commit | c29761f54236f27d3bb3663998121bf1c7cbec8c | [log] [tgz] |
---|---|---|
author | dejanj <dejanj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed Mar 19 11:58:35 2014 +0000 |
committer | dejanj <dejanj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Wed Mar 19 11:58:35 2014 +0000 |
tree | fc639cceefc2c88d1ed881dc2df9320d02cfff6b | |
parent | 263298b43fcb8bcd577becb82c362300a81143dc [diff] |
VG_(strlen) ( const HChar* str ) does not count the null terminator '\0' at the end of the string, so we need to add an extra element in string 's' for the null terminator. VG_(strcpy) ( HChar* dest, const HChar* src ) function copies the string pointed to by src, including the null terminator ('\0'), to the buffer pointed to by dest. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13880 a5019735-40e9-0310-863c-91ae7b9d1cf9