Commit 7c19e8e1 authored by Kenichi Handa's avatar Kenichi Handa

(Fmodify_syntax_entry): Use macro STRING_BYTES to get

byte size of a string.
parent c9aa3ef8
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment