diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-06 13:04:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-04-06 13:04:49 +0000 |
commit | f3e184c5402c184c94847ee79469cb0120bf84c4 (patch) | |
tree | 36dc7a9cf5daf3a8f26eb83d13ec7f07f1c85054 /src/cmd_list.cpp | |
parent | 821a5bca883ad8c06cb27963acf8861d9ef1031e (diff) |
Fix issue spotted by devious - if a value is defined and a later rehash clears the value to empty, the value is not unset properly because it tries to memcpy zero bytes to the value -
this means memcpy just returns immediately. Now if the string value is 0 in length we copy one byte instead (which just copies the null terminator)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6743 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_list.cpp')
0 files changed, 0 insertions, 0 deletions