From c7db48b1ba8193fdfef0d54a88c378db238d6e00 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 19 Jul 1996 21:25:23 +0000 Subject: (hol_usage): Allocate enough space in SHORT_NO_ARG_OPTS for the '\0' terminator. --- libshouldbeinlibc/argp-help.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libshouldbeinlibc/argp-help.c') diff --git a/libshouldbeinlibc/argp-help.c b/libshouldbeinlibc/argp-help.c index 833f11f3..a56b999b 100644 --- a/libshouldbeinlibc/argp-help.c +++ b/libshouldbeinlibc/argp-help.c @@ -596,7 +596,7 @@ hol_usage (struct hol *hol, FILE *stream) { unsigned nentries; struct hol_entry *entry; - char *short_no_arg_opts = alloca (strlen (hol->short_options)); + char *short_no_arg_opts = alloca (strlen (hol->short_options) + 1); char *snao_end = short_no_arg_opts; /* First we put a list of short options without arguments. */ -- cgit v1.2.3