diff options
| author | Paul Eggert | 2011-07-06 15:22:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2011-07-06 15:22:32 -0700 |
| commit | 8a5c77bba5e38c62605f0f053670a7955130fcc7 (patch) | |
| tree | 1e8151eafcd78b625cd097340d066d79ce5a25f2 /src/alloc.c | |
| parent | 437dd18bf116330a43585f85aac12e6a8171b8a2 (diff) | |
| download | emacs-8a5c77bba5e38c62605f0f053670a7955130fcc7.tar.gz emacs-8a5c77bba5e38c62605f0f053670a7955130fcc7.zip | |
Remove more assumptions re struct layout (Bug#8884).
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c index 43befd722bb..f679787e95c 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -5619,7 +5619,8 @@ mark_buffer (Lisp_Object buf) | |||
| 5619 | /* buffer-local Lisp variables start at `undo_list', | 5619 | /* buffer-local Lisp variables start at `undo_list', |
| 5620 | tho only the ones from `name' on are GC'd normally. */ | 5620 | tho only the ones from `name' on are GC'd normally. */ |
| 5621 | for (ptr = &buffer->BUFFER_INTERNAL_FIELD (name); | 5621 | for (ptr = &buffer->BUFFER_INTERNAL_FIELD (name); |
| 5622 | (char *)ptr < (char *)buffer + sizeof (struct buffer); | 5622 | ptr <= &PER_BUFFER_VALUE (buffer, |
| 5623 | PER_BUFFER_VAR_OFFSET (LAST_FIELD_PER_BUFFER)); | ||
| 5623 | ptr++) | 5624 | ptr++) |
| 5624 | mark_object (*ptr); | 5625 | mark_object (*ptr); |
| 5625 | 5626 | ||