Pass getvfsbyname() the address of a struct xvfsconf instead of

struct vfsconf. This silences a warning, but could also prevent
stack corruption problems if xvfsconf ever became larger than vfsconf.

PR:		53863
Submitted by:	Lukas Ertl
This commit is contained in:
tjr 2003-07-20 11:27:54 +00:00
parent 8ad48d0b81
commit 975f59894e

View File

@ -30,6 +30,7 @@
* SUCH DAMAGE.
*
* $Id: mount_smbfs.c,v 1.17 2002/04/10 04:17:51 bp Exp $
* $FreeBSD$
*/
#include <sys/param.h>
#include <sys/stat.h>
@ -75,7 +76,7 @@ main(int argc, char *argv[])
extern void dropsuid();
extern int loadsmbvfs();
#else
struct vfsconf vfc;
struct xvfsconf vfc;
#endif /* APPLE */
char *next;
int opt, error, mntflags, caseopt;