HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12d10bc
)
(Fformat): Don't scan past end of format string that
author
Kim F. Storm
<storm@cua.dk>
Mon, 19 Sep 2005 08:13:14 +0000
(08:13 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Mon, 19 Sep 2005 08:13:14 +0000
(08:13 +0000)
ends in %. Reported by: Johan Bockgård.
src/editfns.c
patch
|
blob
|
blame
|
history
diff --git
a/src/editfns.c
b/src/editfns.c
index
e67e56d
..
c8b0257
100644
(file)
--- a/
src/editfns.c
+++ b/
src/editfns.c
@@
-3424,7
+3424,7
@@
usage: (format STRING &rest OBJECTS) */)
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')