From 2d75794b0e9aac019851b45e1a5b2bfe6801f5d3 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 19 Jan 2001 05:22:51 +0000 Subject: [PATCH] (doprnt1): Get byte length of Lisp string correctly. --- src/doprnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doprnt.c b/src/doprnt.c index 7bcb6741677..3fd6222c9d7 100644 --- a/src/doprnt.c +++ b/src/doprnt.c @@ -240,7 +240,7 @@ doprnt1 (lispstrings, buffer, bufsize, format, format_end, nargs, args) if (lispstrings) { string = ((struct Lisp_String *)args[cnt])->data; - tem = ((struct Lisp_String *)args[cnt])->size; + tem = STRING_BYTES ((struct Lisp_String *)args[cnt]); cnt++; } else -- 2.39.5