diff --git a/sys/vfs/nfs/nfs_serv.c b/sys/vfs/nfs/nfs_serv.c index 0000000..1111111 100644 --- a/sys/vfs/nfs/nfs_serv.c +++ b/sys/vfs/nfs/nfs_serv.c @@ -3184,8 +3184,10 @@ cp += tsiz; } /* And null pad to a int32_t boundary */ - for (i = 0; i < rem; i++) + for (i = 0; i < rem; i++) { + tl = nfsm_clget(&info, mp1, mp2, bp, be); *bp++ = '\0'; + } tl = nfsm_clget(&info, mp1, mp2, bp, be); /* Finish off the record */ @@ -3522,8 +3524,10 @@ cp += tsiz; } /* And null pad to a int32_t boundary */ - for (i = 0; i < rem; i++) + for (i = 0; i < rem; i++) { + tl = nfsm_clget(&info, mp1, mp2, bp, be); *bp++ = '\0'; + } /* * Now copy the flrep structure out.