From 10ceceb87d3d48bc63ae13ce398b1ad16a046c36 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 16 Jul 2002 15:48:54 +0000 Subject: [PATCH] * buffer.c (Fother_buffer): Use SREF when retrieving a byte from a string. --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index 2a42164af25..8aba88d0db9 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1163,7 +1163,7 @@ If BUFFER is omitted or nil, some interesting buffer is returned. */) 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. */ -- 2.39.5