vfs: terminate string in rdlink_direct

Fixes test56 when compiled with GCC.
This commit is contained in:
Arun Thomas 2010-12-01 16:24:50 +00:00
parent cbf7d8f735
commit cc26fb5ec4

View File

@ -293,6 +293,7 @@ struct fproc *rfp;
else
r = req_rdlink(vp->v_fs_e, vp->v_inode_nr, (endpoint_t) 0,
link_path, PATH_MAX+1, 1);
if (r > 0) link_path[r] = '\0';
put_vnode(vp);
return r;