Mercurial > emacs
diff src/ccl.c @ 21244:50929073a0ba
Use STRING_BYTES and SET_STRING_BYTES.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Mar 1998 07:06:14 +0000 |
parents | a9442d47edcb |
children | fa9ff387d260 |
line wrap: on
line diff
--- a/src/ccl.c Sat Mar 21 06:16:35 1998 +0000 +++ b/src/ccl.c Sat Mar 21 07:06:14 1998 +0000 @@ -1568,13 +1568,13 @@ if (ccl.ic < i && i < ccl.size) ccl.ic = i; } - outbufsize = XSTRING (str)->size_byte * ccl.buf_magnification + 256; + outbufsize = STRING_BYTES (XSTRING (str)) * ccl.buf_magnification + 256; outbuf = (char *) xmalloc (outbufsize); if (!outbuf) error ("Not enough memory"); ccl.last_block = NILP (contin); produced = ccl_driver (&ccl, XSTRING (str)->data, outbuf, - XSTRING (str)->size_byte, outbufsize, (int *)0); + STRING_BYTES (XSTRING (str)), outbufsize, (int *)0); for (i = 0; i < 8; i++) XSET (XVECTOR (status)->contents[i], Lisp_Int, ccl.reg[i]); XSETINT (XVECTOR (status)->contents[8], ccl.ic);