diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-07-02 11:59:01 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-07-02 12:38:45 +0200 |
commit | e44223dbcc3ec9b7a8f77c5174f462bd6cae805b (patch) | |
tree | 0886ae338fd8f25edf4504a196d8e31475bbb990 | |
parent | 0026600bfe1a57c979d88c33fad0328e91cbad8d (diff) | |
download | strongswan-e44223dbcc3ec9b7a8f77c5174f462bd6cae805b.tar.bz2 strongswan-e44223dbcc3ec9b7a8f77c5174f462bd6cae805b.tar.xz |
windows: Fix off-by-one error in strerror_s_extended()
-rw-r--r-- | src/libstrongswan/utils/windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/windows.c b/src/libstrongswan/utils/windows.c index d679684d7..8820287b1 100644 --- a/src/libstrongswan/utils/windows.c +++ b/src/libstrongswan/utils/windows.c @@ -362,7 +362,7 @@ int strerror_s_extended(char *buf, size_t buflen, int errnum) }; int offset = EADDRINUSE; - if (errnum < offset || errnum > offset + countof(errstr)) + if (errnum < offset || errnum >= offset + countof(errstr)) { return strerror_s(buf, buflen, errnum); } |