From: Kenichi Handa Date: Tue, 23 Jun 1998 00:29:51 +0000 (+0000) Subject: (Fmodify_syntax_entry): Use macro STRING_BYTES to get X-Git-Tag: emacs-20.3~532 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7c19e8e146415398590e763422cfc663e3b643e1;p=emacs.git (Fmodify_syntax_entry): Use macro STRING_BYTES to get byte size of a string. --- 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;