Fixed broken structure comparison.
authorArmin Novak <armin.novak@thincast.com>
Tue, 1 Sep 2015 09:41:45 +0000 (11:41 +0200)
committerArmin Novak <armin.novak@thincast.com>
Tue, 1 Sep 2015 10:25:43 +0000 (12:25 +0200)
winpr/libwinpr/comm/comm_ioctl.c

index 09c1e0e..2438044 100644 (file)
@@ -709,7 +709,7 @@ int _comm_ioctl_tcsetattr(int fd, int optional_actions, const struct termios *te
                return result;
        }
 
-       if (memcmp(&currentState, &termios_p, sizeof(struct termios)) != 0)
+       if (memcmp(&currentState, termios_p, sizeof(struct termios)) != 0)
        {
                CommLog_Print(WLOG_DEBUG, "all termios parameters are not set yet, doing a second attempt...");
                if ((result = tcsetattr(fd, optional_actions, termios_p)) < 0)