aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Alc/helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/helpers.c b/Alc/helpers.c
index 8c9b1a4b..8407a8d3 100644
--- a/Alc/helpers.c
+++ b/Alc/helpers.c
@@ -726,7 +726,7 @@ void al_string_clear(al_string *str)
static inline int al_string_compare(const al_string_char_type *str1, size_t str1len,
const al_string_char_type *str2, size_t str2len)
{
- size_t complen = (str1len > str2len) ? str1len : str2len;
+ size_t complen = (str1len < str2len) ? str1len : str2len;
int ret = memcmp(str1, str2, complen);
if(ret == 0)
{