Mercurial > emacs
changeset 65608:1da51a6b68c6
(Fformat): Don't scan past end of format string that
ends in %. Reported by: Johan Bockgrd.
author | Kim F. Storm <storm@cua.dk> |
---|---|
date | Mon, 19 Sep 2005 08:13:14 +0000 |
parents | e6815cb0350c |
children | 7d93d4615f9d |
files | src/editfns.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/editfns.c Mon Sep 19 08:13:02 2005 +0000 +++ b/src/editfns.c Mon Sep 19 08:13:14 2005 +0000 @@ -3424,7 +3424,7 @@ digits to print after the '.' for floats, or the max. number of chars to print from a string. */ - while (index ("-0# ", *format)) + while (*format && index ("-0# ", *format)) ++format; if (*format >= '0' && *format <= '9')