summaryrefslogtreecommitdiff
path: root/cpio/cpio_windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/cpio_windows.c')
-rw-r--r--cpio/cpio_windows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpio/cpio_windows.c b/cpio/cpio_windows.c
index 841e9492..420e01d5 100644
--- a/cpio/cpio_windows.c
+++ b/cpio/cpio_windows.c
@@ -61,10 +61,10 @@ permissive_name(const char *name)
{
wchar_t *wn, *wnp;
wchar_t *ws, *wsp;
- size_t l, len, slen, alloclen;
+ DWORD l, len, slen, alloclen;
int unc;
- len = strlen(name);
+ len = (DWORD)strlen(name);
wn = malloc((len + 1) * sizeof(wchar_t));
if (wn == NULL)
return (NULL);