提交 86b95c12 编写于 作者: A Al Viro 提交者: Linus Torvalds

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

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册