summaryrefslogtreecommitdiff
path: root/popt/popthelp.c
diff options
context:
space:
mode:
authorewt <devnull@localhost>1998-12-29 02:35:08 +0000
committerewt <devnull@localhost>1998-12-29 02:35:08 +0000
commitd3bd733a950b73d36fa5bea2e033fad3f5977184 (patch)
treee4f520641d94ac1434a1811631870d668dce972f /popt/popthelp.c
parent35381371cda1d98647998f738a8735449a7c4fd3 (diff)
downloadlibrpm-tizen-d3bd733a950b73d36fa5bea2e033fad3f5977184.tar.gz
librpm-tizen-d3bd733a950b73d36fa5bea2e033fad3f5977184.tar.bz2
librpm-tizen-d3bd733a950b73d36fa5bea2e033fad3f5977184.zip
fixed memset() in help message generation (Dale Hawkins)
added extern "C" stuff to popt.h for C++ compilers (Dale Hawkins) CVS patchset: 2618 CVS date: 1998/12/29 02:35:08
Diffstat (limited to 'popt/popthelp.c')
-rw-r--r--popt/popthelp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/popt/popthelp.c b/popt/popthelp.c
index c45464035..2b5a13c9e 100644
--- a/popt/popthelp.c
+++ b/popt/popthelp.c
@@ -261,7 +261,7 @@ static int showShortOptions(const struct poptOption * opt, FILE * f,
if (!str) {
str = s;
- memset(str, 0, sizeof(str));
+ memset(str, 0, sizeof(s));
}
while (opt->longName || opt->shortName || opt->arg) {