Commit 2d75794b authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(doprnt1): Get byte length of Lisp string correctly.

parent 417ef8f6
......@@ -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
......
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