# HG changeset patch # User Andreas Schwab # Date 1007732111 0 # Node ID 08a00f891a4539033d267c2472df8217b04f59cb # Parent d90447516029992c1a0eff68e8f0b689468c55ca (display_mode_element): Don't read past end of string if it ends with '%'. diff -r d90447516029 -r 08a00f891a45 src/xdisp.c --- a/src/xdisp.c Fri Dec 07 13:05:38 2001 +0000 +++ b/src/xdisp.c Fri Dec 07 13:35:11 2001 +0000 @@ -13461,7 +13461,7 @@ FIELD_WIDTH is the number of characters the display of ELT should occupy in the mode line, and PRECISION is the maximum number of characters to display from ELT's representation. See - display_string for details. * + display_string for details. Returns the hpos of the end of the text generated by ELT. */ @@ -13584,6 +13584,8 @@ } } } + else /* c == 0 */ + break; } } }