aboutsummaryrefslogtreecommitdiff
path: root/providers/implementations/storemgmt/file_store.c
diff options
context:
space:
mode:
Diffstat (limited to 'providers/implementations/storemgmt/file_store.c')
-rw-r--r--providers/implementations/storemgmt/file_store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/storemgmt/file_store.c b/providers/implementations/storemgmt/file_store.c
index bb8b2ab8625a..3049a9c81133 100644
--- a/providers/implementations/storemgmt/file_store.c
+++ b/providers/implementations/storemgmt/file_store.c
@@ -238,7 +238,7 @@ static void *file_open(void *provctx, const char *uri)
#ifdef _WIN32
/* Windows file: URIs with a drive letter start with a / */
if (p[0] == '/' && p[2] == ':' && p[3] == '/') {
- char c = tolower(p[1]);
+ char c = tolower((unsigned char)p[1]);
if (c >= 'a' && c <= 'z') {
p++;