From c101d59bd616232e038b2fb0490605fec153e680 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 16 Jul 2017 10:23:39 +0200 Subject: fixed newline output in Linux stub in libc tests --- src/libc/stdio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/libc/stdio.c b/src/libc/stdio.c index 87b70ef..9fdf510 100644 --- a/src/libc/stdio.c +++ b/src/libc/stdio.c @@ -58,7 +58,8 @@ static void print_char( const char c ) static void print_newline( void ) { - syscall3( __NR_write, STDOUT_FILENO, (long)"\n", 1 ); + char s[2]; s[0] = '\n'; + syscall3( __NR_write, STDOUT_FILENO, (long)s, 1 ); } #endif -- cgit v1.2.3-54-g00ecf