summaryrefslogtreecommitdiff
path: root/src/ccl.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-03-21 07:06:14 +0000
committerRichard M. Stallman <rms@gnu.org>1998-03-21 07:06:14 +0000
commitfc932ac6c7b54ac6f79222a2548707a97d3a44f4 (patch)
tree88f9f2ff546b9d84c11515967b4bb5cc3c16d080 /src/ccl.c
parente7654b4a743e7c54c08629ee336e10a5f1089da6 (diff)
downloademacs-fc932ac6c7b54ac6f79222a2548707a97d3a44f4.tar.gz
Use STRING_BYTES and SET_STRING_BYTES.
Diffstat (limited to 'src/ccl.c')
-rw-r--r--src/ccl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ccl.c b/src/ccl.c
index a41706d3413..8e8575a8f11 100644
--- a/src/ccl.c
+++ b/src/ccl.c
@@ -1568,13 +1568,13 @@ is a unibyte string. By default it is a multibyte string.")
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);