* more bugs of the same way.
authorWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:44:05 +0000 (21:44 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:44:05 +0000 (21:44 +0000)
libcitadel/lib/stringbuf.c

index 3d6493dcee00479e253281a6558acbe736583ac9..1c5a4d0c93a29aaad4c191e4fa35865a63e01838 100644 (file)
@@ -975,6 +975,7 @@ long StrBufExtract_long(const StrBuf* Source, int parmnum, char separator)
        buf[0] = '\0';
        tmp.BufSize = 64;
        tmp.BufUsed = 0;
+       tmp.ConstBuf = 1;
        if (StrBufExtract_token(&tmp, Source, parmnum, separator) > 0)
                return(atoi(buf));
        else
@@ -999,6 +1000,7 @@ unsigned long StrBufExtract_unsigned_long(const StrBuf* Source, int parmnum, cha
        buf[0] = '\0';
        tmp.BufSize = 64;
        tmp.BufUsed = 0;
+       tmp.ConstBuf = 1;
        if (StrBufExtract_token(&tmp, Source, parmnum, separator) > 0) {
                pnum = &buf[0];
                if (*pnum == '-')