Merge branch 'kyconny-patch-1'

This commit is contained in:
irungentoo 2014-07-06 13:25:36 -04:00
commit 18c0a7f80d
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -135,7 +135,7 @@ int ping_array_init(Ping_Array *empty_array, uint32_t size, uint32_t timeout)
if (size == 0 || timeout == 0 || empty_array == NULL)
return -1;
empty_array->entries = calloc(size * sizeof(Ping_Array_Entry), 1);
empty_array->entries = calloc(size, sizeof(Ping_Array_Entry));
if (empty_array->entries == NULL)
return -1;