update fs/vfs/path_cache.c.
This commit is contained in:
parent
5605063950
commit
d7798fd0ab
|
@ -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