diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/plugins/winhttp/winhttp_fetcher.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 6ab866234..5f0b58479 100644 --- a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c +++ b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c @@ -211,7 +211,7 @@ static bool parse_uri(private_winhttp_fetcher_t *this, char *uri, } if (comps.dwExtraInfoLength) { - wcsncat(path, extra, countof(path) - comps.dwUrlPathLength - 1); + wcsncat(path, extra, pathlen - comps.dwUrlPathLength - 1); } if (comps.nPort) { |