* this one needs to be zeroed too
authorWilfried Göesgens <willi@citadel.org>
Sat, 9 Aug 2008 10:54:30 +0000 (10:54 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sat, 9 Aug 2008 10:54:30 +0000 (10:54 +0000)
libcitadel/lib/stringbuf.c

index b3e13075e7fbaa151499f92231bd151abcf69ae4..e0840e2f45766385f367d5260137ee36fb9219ed 100644 (file)
@@ -56,6 +56,7 @@ StrBuf* NewStrBufDup(const StrBuf *CopyMe)
        memcpy(NewBuf->buf, CopyMe->buf, CopyMe->BufUsed + 1);
        NewBuf->BufUsed = CopyMe->BufUsed;
        NewBuf->BufSize = CopyMe->BufSize;
+       NewBuf->ConstBuf = 0;
        return NewBuf;
 }