changeset 22547:1cf8123f4c67

(Fmodify_syntax_entry): Use macro STRING_BYTES to get byte size of a string.
author Kenichi Handa <handa@m17n.org>
date Tue, 23 Jun 1998 00:29:51 +0000
parents 8322a6923140
children b054cd9f66df
files src/syntax.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;