diff options
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 26a13724f..285284fd1 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -221,8 +221,8 @@ inet_pton6(const char *src, unsigned char *dst) * Since some memmove()'s erroneously fail to handle * overlapping regions, we'll do the shift by hand. */ - const int n = tp - colonp; - int i; + const long n = tp - colonp; + long i; for (i = 1; i <= n; i++) { endp[- i] = colonp[n - i]; |