diff --git a/libc/c86/syscall.s b/libc/c86/syscall.s index 0e560fa03..db0aab46b 100644 --- a/libc/c86/syscall.s +++ b/libc/c86/syscall.s @@ -7,7 +7,9 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; use16 86 - .data + .sect 1 ; first data seg + dw 0,0 ; prevent data having address 0 + .data ; default data seg 3 .align 2 .comm _errno,2 .comm _environ,2 diff --git a/libc/stdio/vfprintf.c b/libc/stdio/vfprintf.c index c78712530..ff791b485 100644 --- a/libc/stdio/vfprintf.c +++ b/libc/stdio/vfprintf.c @@ -294,9 +294,7 @@ vfprintf(FILE *op, const char *fmt, va_list ap) case 's': /* String */ p = va_arg(ap, char *); -#ifndef __C86__ /* FIXME add 4 bytes nullptr at start of .data */ if (!p) p = "(null)"; -#endif nopad: sign = '\0'; pad = ' ';