commit | 86b95c12139785a0f4c17cb7b4cb865e7084cd34 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@ftp.linux.org.uk> | Tue Oct 10 22:49:17 2006 +0100 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Tue Oct 10 15:37:24 2006 -0700 |
tree | 1ab601b463a5a5477e372045c4128b8b36668872 | |
parent | 5e7ddac75deaa2887e2b03441f9bed67ea8648d8 [diff] |
[PATCH] strndup() would better take size_t, not int Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff --git a/net/irda/irias_object.c b/net/irda/irias_object.c index a154b1d..56292ab 100644 --- a/net/irda/irias_object.c +++ b/net/irda/irias_object.c
@@ -43,7 +43,7 @@ * * Faster, check boundary... Jean II */ -static char *strndup(char *str, int max) +static char *strndup(char *str, size_t max) { char *new_str; int len;