patch-2.4.5 linux/fs/nfsd/nfsctl.c
Next file: linux/fs/nfsd/nfsfh.c
Previous file: linux/fs/nfsd/nfs3xdr.c
Back to the patch index
Back to the overall index
-  Lines: 18
-  Date:
Wed May 16 10:04:25 2001
-  Orig file: 
v2.4.4/linux/fs/nfsd/nfsctl.c
-  Orig date: 
Fri Feb  9 11:29:44 2001
diff -u --recursive --new-file v2.4.4/linux/fs/nfsd/nfsctl.c linux/fs/nfsd/nfsctl.c
@@ -158,7 +158,7 @@
 			err = -EINVAL;
 		else {
 			memset(res,0, NFS_FHSIZE);
-			memcpy(res, fh.fh_base.fh_pad, fh.fh_size);
+			memcpy(res, &fh.fh_base, fh.fh_size);
 		}
 	}
 
@@ -191,7 +191,7 @@
 			err = -EINVAL;
 		else {
 			memset(res,0, NFS_FHSIZE);
-			memcpy(res, fh.fh_base.fh_pad, fh.fh_size);
+			memcpy(res, &fh.fh_base, fh.fh_size);
 		}
 	}
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)