]> www.tinc-vpn.org Git - tinc/blobdiff - src/cygwin/device.c
Replace remaining sizeof foo with sizeof(foo).
[tinc] / src / cygwin / device.c
index 8229c3d6d33da014a914b9c5551fd527beb778cd..1265f9d596a2c23303e92bf25d3602411257d388 100644 (file)
@@ -161,7 +161,7 @@ static bool setup_device(void) {
 
        /* Get MAC address from tap device */
 
-       if(!DeviceIoControl(device_handle, TAP_IOCTL_GET_MAC, mymac.x, sizeof(mymac.x), mymac.x, sizeof mymac.x, &len, 0)) {
+       if(!DeviceIoControl(device_handle, TAP_IOCTL_GET_MAC, mymac.x, sizeof(mymac.x), mymac.x, sizeof(mymac.x), &len, 0)) {
                logger(DEBUG_ALWAYS, LOG_ERR, "Could not get MAC address from Windows tap device %s (%s): %s", device, iface, winerror(GetLastError()));
                return false;
        }