summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-09-12 10:27:48 +0000
committertjr <tjr@FreeBSD.org>2002-09-12 10:27:48 +0000
commitc6cbf33b5a4d0ab44924ec0e838dc9c847763c6a (patch)
tree763ce24c5bd0db0c99b954a94f5532bebdb6ef2d /include
parent4448ddb047996f445ed1e9781599ad483d2f7f89 (diff)
downloadFreeBSD-src-c6cbf33b5a4d0ab44924ec0e838dc9c847763c6a.zip
FreeBSD-src-c6cbf33b5a4d0ab44924ec0e838dc9c847763c6a.tar.gz
Protect arguments to the putwc and putwchar macros with parens.
Diffstat (limited to 'include')
-rw-r--r--include/wchar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/wchar.h b/include/wchar.h
index 89867ac..f0fdb2c 100644
--- a/include/wchar.h
+++ b/include/wchar.h
@@ -163,7 +163,7 @@ __END_DECLS
#define getwc(fp) fgetwc(fp)
#define getwchar() fgetwc(stdin)
-#define putwc(wc, fp) fputwc(wc, fp)
-#define putwchar(wc) fputwc(wc, stdout)
+#define putwc(wc, fp) fputwc((wc), (fp))
+#define putwchar(wc) fputwc((wc), stdout)
#endif /* !_WCHAR_H_ */
OpenPOWER on IntegriCloud