* if we do a half baked static strbuf for extracting numbers, we have to say its...
authorWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:40:19 +0000 (21:40 +0000)
committerWilfried Göesgens <willi@citadel.org>
Thu, 12 Feb 2009 21:40:19 +0000 (21:40 +0000)
libcitadel/lib/stringbuf.c

index 1c544d9d10714ca644ac744450d4ad6901d74e1e..3d6493dcee00479e253281a6558acbe736583ac9 100644 (file)
@@ -952,6 +952,7 @@ int StrBufExtract_int(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