diff src/buffer.c @ 18603:525fb9a7cc96

(overlay_strings): Finish up previous change.
author Richard M. Stallman <rms@gnu.org>
date Fri, 04 Jul 1997 18:36:58 +0000
parents e0d1b341124c
children 614b916ff5bf
line wrap: on
line diff
--- a/src/buffer.c	Fri Jul 04 13:25:17 1997 +0000
+++ b/src/buffer.c	Fri Jul 04 18:36:58 1997 +0000
@@ -2256,12 +2256,15 @@
     {
       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;)
 	{