aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-07-02 12:08:16 +0200
committerTobias Brunner <tobias@strongswan.org>2014-07-02 12:38:45 +0200
commit118b2879aa0c1b3750576d581dd0f79a3fe8cb41 (patch)
tree9bf33f2c825bca35009e6cd48de0264ee10d0e41 /src
parent831045ef45a9f90c1713f14a23f16b3ea54ac117 (diff)
downloadstrongswan-118b2879aa0c1b3750576d581dd0f79a3fe8cb41.tar.bz2
strongswan-118b2879aa0c1b3750576d581dd0f79a3fe8cb41.tar.xz
winhttp: Do not use countof() on pointer argument
Diffstat (limited to 'src')
-rw-r--r--src/libstrongswan/plugins/winhttp/winhttp_fetcher.c2
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)
{