Fix an overflow in our printf's NULL handling with %p.

This commit is contained in:
Sam Hocevar
2010-01-06 00:48:47 +00:00
committed by sam
parent f6b1f32eba
commit 999a018e68
+1 -1
View File
@@ -187,7 +187,7 @@ static void mydebug(char const *format, va_list args)
{
uintptr_t i = va_arg(args, uintptr_t);
if(!i)
append("NULL", 5);
append("NULL", 4);
else
{
append("0x", 2);