[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fformat fails to detect premature end of string
From: |
Richard M. Stallman |
Subject: |
Re: Fformat fails to detect premature end of string |
Date: |
Mon, 19 Sep 2005 20:03:04 -0400 |
Does this change fix it?
*** editfns.c 12 Sep 2005 11:26:22 -0400 1.397
--- editfns.c 19 Sep 2005 15:28:50 -0400
***************
*** 3424,3430 ****
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
! while (index ("-0# ", *format))
++format;
if (*format >= '0' && *format <= '9')
--- 3424,3432 ----
digits to print after the '.' for floats, or the max.
number of chars to print from a string. */
! while (format != end
! && (*format == '-' || *format == '0' || *format == '#'
! || * format == ' '))
++format;
if (*format >= '0' && *format <= '9')