!168 【轻量级 PR】:update fs/vfs/path_cache.c.
Merge pull request !168 from 冷钦街/N/A
This commit is contained in:
commit
41c86df7ca
|
@ -107,7 +107,7 @@ struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, cons
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = strncpy_s(nc->name, pathCacheSize, name, len);
|
ret = strncpy_s(nc->name, len + 1, name, len);
|
||||||
if (ret != LOS_OK) {
|
if (ret != LOS_OK) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue