Skip to content

Commit

Permalink
[PATCH] strndup() would better take size_t, not int
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Oct 10, 2006
1 parent 5e7ddac commit 86b95c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/irda/irias_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 86b95c1

Please sign in to comment.