Commit 86b95c12 authored by Al Viro's avatar Al Viro Committed by Linus Torvalds
Browse files

[PATCH] strndup() would better take size_t, not int


Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5e7ddac7
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment