[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/alloc.c
From: |
Chong Yidong |
Subject: |
[Emacs-diffs] Changes to emacs/src/alloc.c |
Date: |
Tue, 24 Jan 2006 18:35:26 +0000 |
Index: emacs/src/alloc.c
diff -u emacs/src/alloc.c:1.386 emacs/src/alloc.c:1.387
--- emacs/src/alloc.c:1.386 Mon Jan 23 02:35:36 2006
+++ emacs/src/alloc.c Tue Jan 24 18:35:25 2006
@@ -1978,6 +1978,8 @@
old_nbytes = GC_STRING_BYTES (s);
data = b->next_free;
+ b->next_free = (struct sdata *) ((char *) data + needed + GC_STRING_EXTRA);
+
data->string = s;
s->data = SDATA_DATA (data);
#ifdef GC_CHECK_STRING_BYTES
@@ -1990,7 +1992,6 @@
bcopy (string_overrun_cookie, (char *) data + needed,
GC_STRING_OVERRUN_COOKIE_SIZE);
#endif
- b->next_free = (struct sdata *) ((char *) data + needed + GC_STRING_EXTRA);
/* If S had already data assigned, mark that as free by setting its
string back-pointer to null, and recording the size of the data