summaryrefslogtreecommitdiff
path: root/src/UriFile.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhsoting.net>2019-07-20 08:53:35 +0200
committerJörg Frings-Fürst <debian@jff-webhsoting.net>2019-07-20 08:53:35 +0200
commit63e6ffd8dd8412282e1beccb9a01e33aa57c13f0 (patch)
treef489a0246d74ed4b63c39eff4e6c72f9d5bd862a /src/UriFile.c
parentd289e0569e0317ffd228d8d0bf9f4a7a7a4fc41c (diff)
parent1bd65df2de001b173a8d6a08397043225ad115ad (diff)
Merge branch 'release/debian/0.9.3-1'debian/0.9.3-1
Diffstat (limited to 'src/UriFile.c')
-rw-r--r--src/UriFile.c6
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));