From 2e958dba7d37b76966146b2b279db7f0a248865d Mon Sep 17 00:00:00 2001 From: Raymond Toy <rtoy@google.com> Date: Thu, 16 Feb 2012 20:41:32 -0800 Subject: [PATCH] Fix compiler warning and use fwrite instead of putw to print a string. --- src/lisp/print.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lisp/print.c b/src/lisp/print.c index 9f8fa10b9..f8a908661 100644 --- a/src/lisp/print.c +++ b/src/lisp/print.c @@ -372,11 +372,11 @@ print_string(struct vector* vector) int len = fixnum_value(vector->length); while (len-- > 0) { - if ((*charptr == '"')) { + if (*charptr == '"') { putchar('\\'); } /* Just dump out the UTF-16 data */ - putw(*charptr, stdout); + fwrite(charptr, sizeof(*charptr), 1, stdout); charptr++; } #endif -- GitLab