Commit c278e81b authored by Richard Weinberger's avatar Richard Weinberger

hostfs: Remove open coded strcpy()

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment