vfs: terminate string in rdlink_direct
Fixes test56 when compiled with GCC.
This commit is contained in:
parent
cbf7d8f735
commit
cc26fb5ec4
@ -293,6 +293,7 @@ struct fproc *rfp;
|
|||||||
else
|
else
|
||||||
r = req_rdlink(vp->v_fs_e, vp->v_inode_nr, (endpoint_t) 0,
|
r = req_rdlink(vp->v_fs_e, vp->v_inode_nr, (endpoint_t) 0,
|
||||||
link_path, PATH_MAX+1, 1);
|
link_path, PATH_MAX+1, 1);
|
||||||
|
if (r > 0) link_path[r] = '\0';
|
||||||
|
|
||||||
put_vnode(vp);
|
put_vnode(vp);
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user