projects
/
tools
/
librpm-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
604a38e
)
fixed dumb buffer extension bug
author
marc
<devnull@localhost>
Wed, 13 Dec 1995 17:47:15 +0000
(17:47 +0000)
committer
marc
<devnull@localhost>
Wed, 13 Dec 1995 17:47:15 +0000
(17:47 +0000)
CVS patchset: 21
CVS date: 1995/12/13 17:47:15
lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/lib/stringbuf.c
b/lib/stringbuf.c
index
a1062b9
..
95190c1
100644
(file)
--- a/
lib/stringbuf.c
+++ b/
lib/stringbuf.c
@@
-47,7
+47,7
@@
void appendStringBufAux(StringBuf sb, char *s, int nl)
l = strlen(s);
/* If free == l there is no room for NULL terminator! */
-
if
((l + nl) > sb->free) {
+
while
((l + nl) > sb->free) {
sb->allocated += BUF_CHUNK;
sb->free += BUF_CHUNK;
sb->buf = realloc(sb->buf, sb->allocated);