diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2006-10-10 17:49:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-10 18:37:24 -0400 |
commit | 86b95c12139785a0f4c17cb7b4cb865e7084cd34 (patch) | |
tree | 1ab601b463a5a5477e372045c4128b8b36668872 /net | |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/irda/irias_object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/irda/irias_object.c b/net/irda/irias_object.c index a154b1d71c0f..56292ab7d652 100644 --- a/net/irda/irias_object.c +++ b/net/irda/irias_object.c | |||
@@ -43,7 +43,7 @@ struct ias_value irias_missing = { IAS_MISSING, 0, 0, 0, {0}}; | |||
43 | * | 43 | * |
44 | * Faster, check boundary... Jean II | 44 | * Faster, check boundary... Jean II |
45 | */ | 45 | */ |
46 | static char *strndup(char *str, int max) | 46 | static char *strndup(char *str, size_t max) |
47 | { | 47 | { |
48 | char *new_str; | 48 | char *new_str; |
49 | int len; | 49 | int len; |