aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c9
1 files changed, 6 insertions, 3 deletions
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)
2256 { 2256 {
2257 Lisp_Object tem; 2257 Lisp_Object tem;
2258 int i; 2258 int i;
2259 char *p; 2259 unsigned char *p;
2260 int total = overlay_heads.bytes + overlay_tails.bytes; 2260 int total = overlay_heads.bytes + overlay_tails.bytes;
2261 2261
2262 if (total > overlay_str_len) 2262 if (total > overlay_str_len)
2263 overlay_str_buf = (char *)xrealloc (overlay_str_buf, 2263 {
2264 overlay_str_len = total); 2264 overlay_str_len = total;
2265 overlay_str_buf = (unsigned char *)xrealloc (overlay_str_buf,
2266 total);
2267 }
2265 p = overlay_str_buf; 2268 p = overlay_str_buf;
2266 for (i = overlay_tails.used; --i >= 0;) 2269 for (i = overlay_tails.used; --i >= 0;)
2267 { 2270 {