mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
hostfs: Remove open coded strcpy()
Signed-off-by: Richard Weinberger <[email protected]>
This commit is contained in:
parent
aad50b1e06
commit
c278e81b8a
1 changed files with 4 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue