From 99151e209b2884e3f7a7d6b838ce5f1755ce9c80 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 4 Jan 2014 20:15:16 +0100 Subject: [PATCH] type conversion binds stronger than trinary operator --- core/src/util/translation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/util/translation.c b/core/src/util/translation.c index a96f0914f..be4c2bdf9 100644 --- a/core/src/util/translation.c +++ b/core/src/util/translation.c @@ -283,7 +283,7 @@ static const char *parse_string(opstack ** stack, const char *in, if (ic == NULL) return NULL; c = (char *)opop_v(stack); - bytes = (int)c?strlcpy(oc, c, size):0; + bytes = (int)(c?strlcpy(oc, c, size):0); if (bytes < (int)size) oc += bytes; else