diff options
author | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-24 00:29:50 +0000 |
---|---|---|
committer | pescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7> | 2009-01-24 00:29:50 +0000 |
commit | be94a568ef65120465b49f5c6db90cd4ec3c3eb2 (patch) | |
tree | fe7fc014fe1053e821860c53f78e4cabb95b9ac7 /Plugins/utils/mir_buffer.h | |
parent | 52e0dac49837ca1123412fccd95fdb95873c8321 (diff) |
utils: sync with BerliOS
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@132 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/utils/mir_buffer.h')
-rw-r--r-- | Plugins/utils/mir_buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Plugins/utils/mir_buffer.h b/Plugins/utils/mir_buffer.h index 4a5f012..1161b23 100644 --- a/Plugins/utils/mir_buffer.h +++ b/Plugins/utils/mir_buffer.h @@ -128,7 +128,7 @@ class Buffer Buffer(T in) : str(NULL), size(0), len(0)
{
- if (in == NUL)
+ if (in == NULL)
{
alloc(1);
pack();
@@ -148,7 +148,7 @@ class Buffer void pack()
{
if (str != NULL)
- str[len] = 0;
+ memset(&str[len], 0, sizeof(str[len]));
}
void alloc(size_t total)
|