diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 35fe5a8557..47408e0375 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -4888,6 +4888,7 @@ w32_readlink(UINT cp, const char *path, char *buf, size_t bufsize) errno = map_errno(e); return -1; } + len = lstrlenW(wname) + 1; ret = WideCharToMultiByte(cp, 0, wname, len, buf, bufsize, NULL, NULL); ALLOCV_END(wtmp); if (e) { |