diff options
author | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:58:14 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhsoting.net> | 2019-04-26 17:58:14 +0200 |
commit | fddb419b78bc873fb6fb9e8dc49c28e5ac5113f1 (patch) | |
tree | 3009ac597dd206aa4bfaa50725ed6e7542119877 /src/UriFile.c | |
parent | 4c6be44409a51e938aa1c9e4d920348d5317a3d2 (diff) | |
parent | 5444b1728ba7cfc55e85fd3022b6e88c9441327c (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'src/UriFile.c')
-rw-r--r-- | src/UriFile.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/UriFile.c b/src/UriFile.c index 303ee49..f69c5d8 100644 --- a/src/UriFile.c +++ b/src/UriFile.c @@ -67,6 +67,10 @@ +#include <stdlib.h> /* for size_t, avoiding stddef.h for older MSVCs */ + + + static URI_INLINE int URI_FUNC(FilenameToUriString)(const URI_CHAR * filename, URI_CHAR * uriString, UriBool fromUnix) { const URI_CHAR * input = filename; @@ -92,7 +96,7 @@ static URI_INLINE int URI_FUNC(FilenameToUriString)(const URI_CHAR * filename, : is_windows_network ? _UT("file:") : _UT("file:///"); - const int prefixLen = URI_STRLEN(prefix); + const size_t prefixLen = URI_STRLEN(prefix); /* Copy prefix */ memcpy(uriString, prefix, prefixLen * sizeof(URI_CHAR)); |