diff src/editfns.c @ 90229:626b546fed64

Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-83 Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 554-555) - Update from CVS - Remove CVS keywords from newsticker files
author Miles Bader <miles@gnu.org>
date Mon, 19 Sep 2005 11:00:10 +0000
parents fa0da9b57058
children ee12d75eb214
line wrap: on
line diff
--- a/src/editfns.c	Mon Sep 19 10:20:33 2005 +0000
+++ b/src/editfns.c	Mon Sep 19 11:00:10 2005 +0000
@@ -3556,7 +3556,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')