[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>
This commit is contained in:
Al Viro 2006-10-10 22:49:17 +01:00 committed by Linus Torvalds
parent 5e7ddac75d
commit 86b95c1213

View File

@ -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;