提交 d7798fd0 编写于 作者: 冷钦街 提交者: Gitee

update fs/vfs/path_cache.c.

上级 56050639
......@@ -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.
先完成此消息的编辑!
想要评论请 注册