X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FKernel%2Flibc.c;h=d42e5249e34289df90482f50b4094232e48274b7;hb=1ef008bfea0001d300bd382824183c82dedef0ef;hp=c065e1ed8908dc59a9e2645ad5201e14cfe11bae;hpb=3d1d6dcdd09ad5c4e05daea338b42a736b13b1f3;p=tpg%2Facess2.git diff --git a/KernelLand/Kernel/libc.c b/KernelLand/Kernel/libc.c index c065e1ed..d42e5249 100644 --- a/KernelLand/Kernel/libc.c +++ b/KernelLand/Kernel/libc.c @@ -394,7 +394,13 @@ int vsnprintf(char *__s, const size_t __maxlen, const char *__format, va_list ar if( !CheckMem(p, minSize) ) continue; // No #PFs please if(!p) goto printString; while(minSize--) { - PUTCH(*p); + if(*p == '\0') { + PUTCH('\\'); + PUTCH('0'); + } + else { + PUTCH(*p); + } p ++; } break;