Skip to content
Snippets Groups Projects
Commit 836b8b9d authored by Jan S's avatar Jan S
Browse files

sys/ping/ping.c: malloc size of type, not size of pointer

parent ba907471
No related branches found
No related tags found
No related merge requests found
......@@ -106,6 +106,6 @@ void print_failed(void)
void init_payload(void)
{
pipa = malloc(sizeof(pipa));
pipa = malloc(sizeof(*pipa));
pipa->payload = NULL;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment