summaryrefslogtreecommitdiff
path: root/popt/popt.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-11-18 16:57:45 +0000
committerjbj <devnull@localhost>1999-11-18 16:57:45 +0000
commit284ac8bec49c6a708dd096c17115c34c3cd8bc80 (patch)
tree6509458ecd2add52359f2ee688126896dc96cdd4 /popt/popt.c
parent1140a20ef80e32b3ab3da9153cab8e940dcc58ed (diff)
downloadrpm-284ac8bec49c6a708dd096c17115c34c3cd8bc80.tar.gz
rpm-284ac8bec49c6a708dd096c17115c34c3cd8bc80.tar.bz2
rpm-284ac8bec49c6a708dd096c17115c34c3cd8bc80.zip
fix: realloc didn't include space for trailing NUL.
CVS patchset: 3427 CVS date: 1999/11/18 16:57:45
Diffstat (limited to 'popt/popt.c')
-rw-r--r--popt/popt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popt.c b/popt/popt.c
index 1121c91cb..0de68fdce 100644
--- a/popt/popt.c
+++ b/popt/popt.c
@@ -374,7 +374,7 @@ static /*@only@*/ const char * expandNextArg(poptContext con, const char * s)
*te++ = c;
}
*te = '\0';
- t = realloc(t, strlen(t)); /* XXX memory leak, hard to plug */
+ t = realloc(t, strlen(t)+1); /* XXX memory leak, hard to plug */
return t;
}