git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/vsprintf.c: fix interaction of kasprintf() and vsnprintf() when using %pV
[pandora-kernel.git]
/
lib
/
vsprintf.c
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index
1d659d7
..
c112056
100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-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':