diff options
author | jbj <devnull@localhost> | 1999-11-18 16:57:45 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-18 16:57:45 +0000 |
commit | 284ac8bec49c6a708dd096c17115c34c3cd8bc80 (patch) | |
tree | 6509458ecd2add52359f2ee688126896dc96cdd4 /popt/popt.c | |
parent | 1140a20ef80e32b3ab3da9153cab8e940dcc58ed (diff) | |
download | rpm-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.c | 2 |
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; } |