summaryrefslogtreecommitdiffstats
path: root/libvncserver
diff options
context:
space:
mode:
authorMaks Naumov <maksqwe1@ukr.net>2014-10-14 12:09:18 +0300
committerMaks Naumov <maksqwe1@ukr.net>2014-10-14 12:09:18 +0300
commit02d0f73ee8e96871d971d51b4515416b5a9bd489 (patch)
tree651aed9169251669238decb2ae0ef713c06c2fa4 /libvncserver
parent7ef0ae905c3c6c1d8079b8cabac4126f7dbf8081 (diff)
downloadlibtdevnc-02d0f73ee8e96871d971d51b4515416b5a9bd489.tar.gz
libtdevnc-02d0f73ee8e96871d971d51b4515416b5a9bd489.zip
Fix selData.buttonWidth calculation
Operator "+" has a higher priority than "? :"
Diffstat (limited to 'libvncserver')
-rw-r--r--libvncserver/selbox.c2
1 files changed, 1 insertions, 1 deletions
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<j)?j:i;
+ selData.buttonWidth= k = 4*border+(i<j?j:i);
selData.okBX = x1+(x2-x1-2*k)/3;
if(selData.okBX<x1+border) /* too narrow! */
return(-1);