hostfs: Remove open coded strcpy()

Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Richard Weinberger 2015-03-03 23:42:25 +01:00
parent aad50b1e06
commit c278e81b8a
1 changed files with 4 additions and 5 deletions

View File

@ -105,11 +105,10 @@ static char *__dentry_name(struct dentry *dentry, char *name)
__putname(name); __putname(name);
return NULL; return NULL;
} }
if (p > name + len) {
char *s = name + len; if (p > name + len)
while ((*s++ = *p++) != '\0') strcpy(name + len, p);
;
}
return name; return name;
} }