From: Al Viro Date: Tue, 10 Oct 2006 21:49:17 +0000 (+0100) Subject: [PATCH] strndup() would better take size_t, not int X-Git-Tag: v2.6.19-rc2~165 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86b95c12139785a0f4c17cb7b4cb865e7084cd34;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git [PATCH] strndup() would better take size_t, not int Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- 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 @@ struct ias_value irias_missing = { IAS_MISSING, 0, 0, 0, {0}}; * * 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;