From: Richard M. Stallman Date: Fri, 4 Jul 1997 18:36:58 +0000 (+0000) Subject: (overlay_strings): Finish up previous change. X-Git-Tag: emacs-20.1~1343 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9f4d7cde2cbb636d767da922bdf9789da3515a32;p=emacs.git (overlay_strings): Finish up previous change. --- diff --git a/src/buffer.c b/src/buffer.c index c2159627eb5..7b33c71daef 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -2256,12 +2256,15 @@ overlay_strings (pos, w, pstr) { Lisp_Object tem; int i; - char *p; + unsigned char *p; int total = overlay_heads.bytes + overlay_tails.bytes; if (total > overlay_str_len) - overlay_str_buf = (char *)xrealloc (overlay_str_buf, - overlay_str_len = total); + { + overlay_str_len = total; + overlay_str_buf = (unsigned char *)xrealloc (overlay_str_buf, + total); + } p = overlay_str_buf; for (i = overlay_tails.used; --i >= 0;) {