From cdf884fd451a9e6d883a3bfceba0cd15fe829896 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 1 Sep 2015 11:41:45 +0200 Subject: [PATCH] Fixed broken structure comparison. --- winpr/libwinpr/comm/comm_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winpr/libwinpr/comm/comm_ioctl.c b/winpr/libwinpr/comm/comm_ioctl.c index 09c1e0e..2438044 100644 --- a/winpr/libwinpr/comm/comm_ioctl.c +++ b/winpr/libwinpr/comm/comm_ioctl.c @@ -709,7 +709,7 @@ int _comm_ioctl_tcsetattr(int fd, int optional_actions, const struct termios *te return result; } - if (memcmp(¤tState, &termios_p, sizeof(struct termios)) != 0) + if (memcmp(¤tState, 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) -- 2.7.4