diff options
Diffstat (limited to 'isys/isys.c')
-rw-r--r-- | isys/isys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/isys.c b/isys/isys.c index f417325a0..c4712cb6b 100644 --- a/isys/isys.c +++ b/isys/isys.c @@ -768,7 +768,7 @@ static PyObject * doConfigNetDevice(PyObject * s, PyObject * args) { if (!PyArg_ParseTuple(args, "ssss", &dev, &ip, &netmask, &gateway)) return NULL; - memset(device,'\0',sizeof(struct pumpNetIntf)); + memset(&device,'\0',sizeof(struct pumpNetIntf)); strncpy(device.device, dev, sizeof(device.device) - 1); device.ip.s_addr = inet_addr(ip); device.netmask.s_addr = inet_addr(netmask); |