changeset 46419:46ff766afaaf

* buffer.c (Fother_buffer): Use SREF when retrieving a byte from a string.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 15:48:54 +0000
parents b12a32662433
children 1ab8a78692f4
files src/buffer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Tue Jul 16 15:48:47 2002 +0000
+++ b/src/buffer.c	Tue Jul 16 15:48:54 2002 +0000
@@ -1163,7 +1163,7 @@
       buf = Fcdr (Fcar (tail));
       if (EQ (buf, buffer))
 	continue;
-      if (SDATA (XBUFFER (buf)->name)[0] == ' ')
+      if (SREF (XBUFFER (buf)->name, 0) == ' ')
 	continue;
       /* If the selected frame has a buffer_predicate,
 	 disregard buffers that don't fit the predicate.  */