summaryrefslogtreecommitdiffstats
path: root/src/win32/filesystem_win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win32/filesystem_win32.c')
-rw-r--r--src/win32/filesystem_win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win32/filesystem_win32.c b/src/win32/filesystem_win32.c
index a790264..877e717 100644
--- a/src/win32/filesystem_win32.c
+++ b/src/win32/filesystem_win32.c
@@ -1,4 +1,4 @@
-// Copyright 2007-2022 David Robillard <d@drobilla.net>
+// Copyright 2007-2024 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
#include <zix/filesystem.h>
@@ -205,7 +205,7 @@ zix_canonical_path(ZixAllocator* const allocator, const char* const path)
return NULL;
}
- char* const final = (char*)zix_calloc(allocator, final_size + 1U, 1U);
+ char* const final = (char*)zix_calloc(allocator, (size_t)final_size + 1U, 1U);
if (!final || !GetFinalPathNameByHandle(h, final, final_size + 1U, flags)) {
zix_free(allocator, final);
CloseHandle(h);