diff --git a/dlls/shlwapi/url.c b/dlls/shlwapi/url.c index 19083dc406f..d3dea24d4f4 100644 --- a/dlls/shlwapi/url.c +++ b/dlls/shlwapi/url.c @@ -2441,7 +2441,7 @@ HRESULT WINAPI UrlFixupW(LPCWSTR url, LPWSTR translatedUrl, DWORD maxChars) if (!url) return E_FAIL; - srcLen = lstrlenW(url); + srcLen = lstrlenW(url) + 1; /* For now just copy the URL directly */ lstrcpynW(translatedUrl, url, (maxChars < srcLen) ? maxChars : srcLen);