projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[cascardo/linux.git]
/
net
/
9p
/
protocol.c
diff --git
a/net/9p/protocol.c
b/net/9p/protocol.c
index
9ee48cb
..
3d33ecf
100644
(file)
--- a/
net/9p/protocol.c
+++ b/
net/9p/protocol.c
@@
-368,7
+368,7
@@
p9pdu_vwritef(struct p9_fcall *pdu, int proto_version, const char *fmt,
const char *sptr = va_arg(ap, const char *);
uint16_t len = 0;
if (sptr)
- len = min_t(
uint16
_t, strlen(sptr),
+ len = min_t(
size
_t, strlen(sptr),
USHRT_MAX);
errcode = p9pdu_writef(pdu, proto_version,