From: Ken Raeburn Date: Tue, 16 Jul 2002 15:48:54 +0000 (+0000) Subject: * buffer.c (Fother_buffer): Use SREF when retrieving a byte from X-Git-Tag: ttn-vms-21-2-B4~14095 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=10ceceb87d3d48bc63ae13ce398b1ad16a046c36;p=emacs.git * buffer.c (Fother_buffer): Use SREF when retrieving a byte from a string. --- 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. */