[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: makeinfo segfault + patch
From: |
Arkadiusz Miskiewicz |
Subject: |
Re: makeinfo segfault + patch |
Date: |
Wed, 5 Nov 2008 07:44:27 +0100 |
User-agent: |
PLD Linux KMail/1.9.10 |
On Wednesday 05 of November 2008, Karl Berry wrote:
> No place for terminating \0 == segfault.
>
> Thanks, I installed your patch. I am surprised it was not found before!
btw. %4d makes always "4 characters" wide while previously it was the same
number of chars as number of digits. Slightly different behaviour so
char s[5];
- sprintf (s, "%d", numbers[0]);
+ snprintf (s, sizeof(s), "%d", numbers[0]);
could be better for second chunk.
>
> Best,
> Karl
--
Arkadiusz MiĆkiewicz PLD/Linux Team
arekm / maven.pl http://ftp.pld-linux.org/