diff --git a/sys/ping/ping.c b/sys/ping/ping.c index c214f50395770aff18b64ac60f20b844276f7209..fae3cba19e28445b2d4fc79819217857cc8da89f 100644 --- a/sys/ping/ping.c +++ b/sys/ping/ping.c @@ -106,6 +106,6 @@ void print_failed(void) void init_payload(void) { - pipa = malloc(sizeof(pipa)); + pipa = malloc(sizeof(*pipa)); pipa->payload = NULL; }