From 118b2879aa0c1b3750576d581dd0f79a3fe8cb41 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Wed, 2 Jul 2014 12:08:16 +0200 Subject: [PATCH] winhttp: Do not use countof() on pointer argument --- src/libstrongswan/plugins/winhttp/winhttp_fetcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c b/src/libstrongswan/plugins/winhttp/winhttp_fetcher.c index 6ab8662340..5f0b584799 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) { -- 2.47.2