1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

(Fmodify_syntax_entry): Use macro STRING_BYTES to get

byte size of a string.
This commit is contained in:
Kenichi Handa 1998-06-23 00:29:51 +00:00
parent c9aa3ef816
commit 7c19e8e146

View file

@ -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;