changeset 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 9b34ca7eb8ef
children 9f1bc5e1e4a8
files src/buffer.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
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;)
 	{