From 7c19e8e146415398590e763422cfc663e3b643e1 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 23 Jun 1998 00:29:51 +0000 Subject: [PATCH] (Fmodify_syntax_entry): Use macro STRING_BYTES to get byte size of a string. --- src/syntax.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/syntax.c b/src/syntax.c index 4ab87a3a3c2..b17a8d4d0bc 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -877,8 +877,8 @@ DEFUN ("modify-syntax-entry", Fmodify_syntax_entry, Smodify_syntax_entry, 2, 3, if (*p) { int len; - int character = STRING_CHAR_AND_LENGTH (p, XSTRING (newentry)->size - 1, - len); + int character = (STRING_CHAR_AND_LENGTH + (p, STRING_BYTES (XSTRING (newentry)) - 1, len)); XSETINT (match, character); if (XFASTINT (match) == ' ') match = Qnil; -- 2.39.2