[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: crash with file image with --
From: |
Karl Berry |
Subject: |
Re: crash with file image with -- |
Date: |
Tue, 20 May 2008 12:31:11 -0500 |
@image{f--ile,,,,e--xt}
I installed this patch which apparently fixes it. (This was independent
of the --; any explicit extension longer than three chars would break it.)
Thanks,
Karl
--- makeinfo.c.~1.119.~ 2008-05-19 11:26:48.000000000 -0700
+++ makeinfo.c 2008-05-20 10:28:42.000000000 -0700
@@ -3422,3 +3423,5 @@ cm_image (int arg)
unsigned ext_len = (ext_arg && *ext_arg) ? strlen (ext_arg) : 0;
- char *fullname = xmalloc (strlen (name_arg) + MAX (ext_len, 4) + 1);
+ /* One byte for the . period separator, one byte for the null.
+ The 3 is for the max length of the hardwired extensions we try. */
+ char *fullname = xmalloc (strlen (name_arg) + 1 + MAX (ext_len, 3) + 1);