diff options
Diffstat (limited to 'src/libc/stdio.c')
-rw-r--r-- | src/libc/stdio.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |