aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/inet_pton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c
index 34dfc31e7..7d4714db7 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -206,7 +206,7 @@ inet_pton6(const char *src, unsigned char *dst)
if(tp + INT16SZ > endp)
return (0);
*tp++ = (unsigned char) (val >> 8) & 0xff;
- *tp++ = (unsigned char) val & 0xff;
+ *tp++ = (unsigned char) (val & 0xff);
}
if(colonp != NULL) {
/*