summaryrefslogtreecommitdiffstats
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 2c5c15d..33b76d6 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -220,7 +220,7 @@ char *string_toupper(char* str)
char *res = strdup(str);
size_t i;
for (i = 0; i < strlen(res); i++) {
- res[i] = toupper(res[i]);
+ res[i] = toupper((unsigned char)res[i]);
}
return res;
}