Unverified Commit 616178dd authored by Jake Stine's avatar Jake Stine Committed by GitHub
Browse files

utf-8: input to tolower must always be unsigned (#170)

parent 75c56294
......@@ -183,7 +183,7 @@ int audio_newSource(lua_State *L)
char ext[PATH_MAX_LENGTH];
strcpy(ext, path_get_extension(path));
for(int i = 0; ext[i]; i++)
ext[i] = tolower(ext[i]);
ext[i] = tolower((uint8_t)ext[i]);
if (strstr(ext, "ogg"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment