summaryrefslogtreecommitdiff
path: root/popt
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
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')
-rw-r--r--popt/po/popt.pot2
-rw-r--r--popt/popt.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/popt/po/popt.pot b/popt/po/popt.pot
index 56a5f6063..169152227 100644
--- a/popt/po/popt.pot
+++ b/popt/po/popt.pot
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 1999-11-01 18:21-0500\n"
+"POT-Creation-Date: 1999-11-18 11:50-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
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;
}