]> git.eshelyaron.com Git - emacs.git/commitdiff
(display_mode_element): Don't read past end of string if it ends with '%'.
authorAndreas Schwab <schwab@suse.de>
Sun, 9 Dec 2001 15:29:01 +0000 (15:29 +0000)
committerAndreas Schwab <schwab@suse.de>
Sun, 9 Dec 2001 15:29:01 +0000 (15:29 +0000)
src/ChangeLog
src/xdisp.c

index 12ff31e67586681c7652eed5bd1282083d40f826..cfa1c2ac5fa93660d170e403530d64fabe93c561 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-09  Andreas Schwab  <schwab@suse.de>
+
+       * xdisp.c (display_mode_element): Don't read past end of string if
+       it ends with '%'.
+
 2001-12-06  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
index 6ff8e9c1cde0fcf2954f9c5d26f456ccb99dd8a2..bf984778d4ace87d303d20705fd56941a024240b 100644 (file)
@@ -13595,6 +13595,8 @@ display_mode_element (it, depth, field_width, precision, elt)
                          }
                      }
                  }
+               else /* c == 0 */
+                 break;
              }
          }
       }