From 5bc093269dff2c2b737ce429977b42a83f9670ef Mon Sep 17 00:00:00 2001 From: "Jan (janneke) Nieuwenhuizen" Date: Sat, 2 Nov 2019 18:55:21 +0100 Subject: [PATCH] mescc: Mes C Library: Prepare for M2-Planet: fdputc. * lib/mes/fdputc.c (fdputc): Prepare for M2-Planet. --- lib/mes/fdputc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/mes/fdputc.c b/lib/mes/fdputc.c index 0e68195b..a06b6546 100644 --- a/lib/mes/fdputc.c +++ b/lib/mes/fdputc.c @@ -23,6 +23,7 @@ int fdputc (int c, int fd) { - write (fd, (char *) &c, 1); + char *p = &c; + write (fd, p, 1); return 0; }