提交 41c86df7 编写于 作者: O openharmony_ci 提交者: Gitee

!168 【轻量级 PR】:update fs/vfs/path_cache.c.

Merge pull request !168 from 冷钦街/N/A
......@@ -107,7 +107,7 @@ struct PathCache *PathCacheAlloc(struct Vnode *parent, struct Vnode *vnode, cons
return NULL;
}
ret = strncpy_s(nc->name, pathCacheSize, name, len);
ret = strncpy_s(nc->name, len + 1, name, len);
if (ret != LOS_OK) {
return NULL;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册