|
@@ -898,7 +898,7 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
|
|
|
case 'U':
|
|
|
return uuid_string(buf, end, ptr, spec, fmt);
|
|
|
case 'V':
|
|
|
- return buf + vsnprintf(buf, end - buf,
|
|
|
+ return buf + vsnprintf(buf, end > buf ? end - buf : 0,
|
|
|
((struct va_format *)ptr)->fmt,
|
|
|
*(((struct va_format *)ptr)->va));
|
|
|
case 'K':
|