projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b1ed6
)
* more bugs of the same way.
author
Wilfried Göesgens
<willi@citadel.org>
Thu, 12 Feb 2009 21:44:05 +0000
(21:44 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Thu, 12 Feb 2009 21:44:05 +0000
(21:44 +0000)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 3d6493dcee00479e253281a6558acbe736583ac9..1c5a4d0c93a29aaad4c191e4fa35865a63e01838 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-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 == '-')