summaryrefslogtreecommitdiff
path: root/ports/zephyr/modusocket.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/zephyr/modusocket.c')
-rw-r--r--ports/zephyr/modusocket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/zephyr/modusocket.c b/ports/zephyr/modusocket.c
index e021c3a44..95414a49b 100644
--- a/ports/zephyr/modusocket.c
+++ b/ports/zephyr/modusocket.c
@@ -91,7 +91,7 @@ STATIC mp_obj_t format_inet_addr(struct sockaddr *addr, mp_obj_t port) {
net_addr_ntop(addr->sa_family, &sockaddr_in6->sin6_addr, buf, sizeof(buf));
mp_obj_tuple_t *tuple = mp_obj_new_tuple(addr->sa_family == AF_INET ? 2 : 4, NULL);
- tuple->items[0] = mp_obj_new_str(buf, strlen(buf), false);
+ tuple->items[0] = mp_obj_new_str(buf, strlen(buf));
// We employ the fact that port offset is the same for IPv4 & IPv6
// not filled in
//tuple->items[1] = mp_obj_new_int(ntohs(((struct sockaddr_in*)addr)->sin_port));