提交 c278e81b 编写于 作者: R Richard Weinberger

hostfs: Remove open coded strcpy()

Signed-off-by: NRichard Weinberger <richard@nod.at>
上级 aad50b1e
......@@ -105,11 +105,10 @@ static char *__dentry_name(struct dentry *dentry, char *name)
__putname(name);
return NULL;
}
if (p > name + len) {
char *s = name + len;
while ((*s++ = *p++) != '\0')
;
}
if (p > name + len)
strcpy(name + len, p);
return name;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册