diff --git a/libs/libdingaling/src/libdingaling.c b/libs/libdingaling/src/libdingaling.c index b0706919d2..bbec64e1a7 100644 --- a/libs/libdingaling/src/libdingaling.c +++ b/libs/libdingaling/src/libdingaling.c @@ -464,7 +464,7 @@ static int on_presence(void *user_data, ikspak *pak) if (resource) { for (x = 0; x < strlen(resource); x++) { - resource[x] = tolower(resource[x]); + resource[x] = (char)tolower((int)resource[x]); } }