fix from Ion Badulescu: use [FHSIZE-sizeof(u_int)] which is the
actual size we use.
* amd/nfs_subr.c: use [1] for out-of-band pointer at the end of
struct am_fh, because it's the most portable method. Bug fix
- suggestion from Dan Riley <dsr at mail.lns.cornell.edu>.
+ suggestion from Dan Riley <dsr at mail.lns.cornell.edu>. Better
+ fix from Ion Badulescu: use [FHSIZE-sizeof(u_int)] which is the
+ actual size we use.
* amd/amfs_generic.c (amfs_lookup_mntfs): reset currently used
def_opts to options given in -opts, appended with the /default
* SUCH DAMAGE.
*
*
- * $Id: nfs_subr.c,v 1.30 2005/05/16 18:08:53 ezk Exp $
+ * $Id: nfs_subr.c,v 1.31 2005/05/16 18:41:40 ezk Exp $
*
*/
int fhh_pid; /* process id */
int fhh_id; /* map id */
} s;
- /*
- * path to am_node. Use [1] because it's the most portable method.
- */
- char fhh_path[1];
+ char fhh_path[FHSIZE-sizeof(u_int)]; /* path to am_node */
} u;
};