# HG changeset patch # User Kenichi Handa # Date 898561791 0 # Node ID 1cf8123f4c6754b334d1bcd507f92a39484ecc60 # Parent 8322a6923140a919b36720ed94f35bc920c1be0b (Fmodify_syntax_entry): Use macro STRING_BYTES to get byte size of a string. diff -r 8322a6923140 -r 1cf8123f4c67 src/syntax.c --- a/src/syntax.c Mon Jun 22 18:23:14 1998 +0000 +++ b/src/syntax.c Tue Jun 23 00:29:51 1998 +0000 @@ -877,8 +877,8 @@ 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;