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:
c40c0b6
)
fix off by one error (to agree with comment, no less)
author
root
<devnull@localhost>
Tue, 20 Feb 1996 22:25:21 +0000
(22:25 +0000)
committer
root
<devnull@localhost>
Tue, 20 Feb 1996 22:25:21 +0000
(22:25 +0000)
CVS patchset: 370
CVS date: 1996/02/20 22:25:21
lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/lib/stringbuf.c
b/lib/stringbuf.c
index
95190c1
..
5025f7f
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! */
- while ((l + nl) > sb->free) {
+ while ((l + nl
+ 1
) > sb->free) {
sb->allocated += BUF_CHUNK;
sb->free += BUF_CHUNK;
sb->buf = realloc(sb->buf, sb->allocated);