From 02d0f73ee8e96871d971d51b4515416b5a9bd489 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Tue, 14 Oct 2014 12:09:18 +0300 Subject: Fix selData.buttonWidth calculation Operator "+" has a higher priority than "? :" --- libvncserver/selbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvncserver/selbox.c b/libvncserver/selbox.c index bbc6d52..ab84390 100644 --- a/libvncserver/selbox.c +++ b/libvncserver/selbox.c @@ -235,7 +235,7 @@ int rfbSelectBox(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font, i = rfbWidthOfString(font,okStr); j = rfbWidthOfString(font,cancelStr); - selData.buttonWidth= k = 4*border+(i