Skip to content

Commit

Permalink
fixup! gnrc_sock_ip: fix memcpy()/memset() sizeof-type
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Nov 8, 2016
1 parent 14c9855 commit 252fee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/sock/ip/gnrc_sock_ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ int sock_ip_create(sock_ip_t *sock, const sock_ip_ep_t *local,
(local->netif != remote->netif)) {
return -EINVAL;
}
memset(&sock->local, 0, sizeof(sock_ip_t));
memset(&sock->local, 0, sizeof(sock_ip_ep_t));
if (local != NULL) {
if (gnrc_af_not_supported(local->family)) {
return -EAFNOSUPPORT;
Expand Down

0 comments on commit 252fee8

Please sign in to comment.