aboutsummaryrefslogtreecommitdiffstats
path: root/parsehdlist.c
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-12-05 14:42:33 +0000
committerFrancois Pons <fpons@mandriva.com>2001-12-05 14:42:33 +0000
commit3366902175db329e57107b7a822e7d07202f5606 (patch)
tree88797f883601b1d4a794362f2029f55fcd606fb3 /parsehdlist.c
parent5ea4adfa160bfa16e3f6062dc3bff4414fb7ad65 (diff)
downloadrpmtools-3366902175db329e57107b7a822e7d07202f5606.tar
rpmtools-3366902175db329e57107b7a822e7d07202f5606.tar.gz
rpmtools-3366902175db329e57107b7a822e7d07202f5606.tar.bz2
rpmtools-3366902175db329e57107b7a822e7d07202f5606.tar.xz
rpmtools-3366902175db329e57107b7a822e7d07202f5606.zip
fixed bad alloca size.
Diffstat (limited to 'parsehdlist.c')
-rw-r--r--parsehdlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parsehdlist.c b/parsehdlist.c
index 76b515c..7976434 100644
--- a/parsehdlist.c
+++ b/parsehdlist.c
@@ -162,7 +162,7 @@ void print_list_name(Header header, char *format, char print_sep, int extension)
char *version = get_name(header, RPMTAG_VERSION);
char *release = get_name(header, RPMTAG_RELEASE);
char *arch = get_name(header, RPMTAG_ARCH);
- char *buff = alloca(strlen(version) + strlen(release) + strlen(arch) + 1+1+1 + 4);
+ char *buff = alloca(strlen(name) + strlen(version) + strlen(release) + strlen(arch) + 1+1+1 + 5);
printf(format, name, "");
@@ -206,7 +206,7 @@ void print_help(void) {
" --compact - print compact provides, requires, conflicts, obsoletes flags.\n"
" --all - print all tags (incompatible with interactive mode).\n"
" --name - print tag name and rpm filename if needed.\n"
- " --info - print tag name, serial, group and rpm filename if needed\n"
+ " --info - print tag name, serial and rpm filename if needed\n"
" --group - print tag group: group.\n"
" --size - print tag size: size.\n"
" --serial - print tag serial: serial.\n"