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-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86b95c12139785a0f4c17cb7b4cb865e7084cd34;p=linux-beck.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 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}}; * * 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;