summary refs log tree commit diff stats
path: root/src/common/text.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-10-05 00:30:35 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-10-05 00:30:35 +0200
commit2f09db1d4fe16a6bfa461ba5f05a5e5edd647337 (patch)
treef61d7b72def58817a779a6560ce247cce22ff03e /src/common/text.c
parentafe16e7bb7da877ed65c2461e4113e920121c225 (diff)
Fix operator precedence oversight (AND vs OR)
Diffstat (limited to 'src/common/text.c')
-rw-r--r--src/common/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/text.c b/src/common/text.c
index bf55f8ca..c24c8358 100644
--- a/src/common/text.c
+++ b/src/common/text.c
@@ -585,7 +585,7 @@ logmask_is_fullpath ()
 	 * - starts with '\' which denotes the root directory of the current drive letter
 	 * - starts with a drive letter and followed by ':'
 	 */
-	if (prefs.logmask[0] == '\\' || ((prefs.logmask[0] >= 'A' && prefs.logmask[0] <= 'Z') || (prefs.logmask[0] >= 'a' && prefs.logmask[0] <= 'z') && prefs.logmask[1] == ':'))
+	if (prefs.logmask[0] == '\\' || (((prefs.logmask[0] >= 'A' && prefs.logmask[0] <= 'Z') || (prefs.logmask[0] >= 'a' && prefs.logmask[0] <= 'z')) && prefs.logmask[1] == ':'))
 #else
 	if (prefs.logmask[0] == '/')
 #endif