xv6

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit b9432848937dc5250a90f9c9325af5bd4a59ade9
parent 43baa1f22417ef920c718731d3a2741c52c516fb
Author: rsc <rsc>
Date:   Tue, 28 Aug 2007 04:15:35 +0000

handle printf("%s\n", 0)

Diffstat:
Mprintf.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/printf.c b/printf.c @@ -63,6 +63,8 @@ printf(int fd, char *fmt, ...) } else if(c == 's'){ s = (char*)*ap; ap++; + if(s == 0) + s = "(null)"; while(*s != 0){ putc(fd, *s); s++;