1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix wrong type in calloc sizeof.

This commit is contained in:
Jonas 'Sortie' Termansen 2016-01-08 00:46:44 +01:00
parent a45b93785c
commit 8b52c0d818

View file

@ -302,7 +302,7 @@ int main(int argc, char* argv[])
if ( columns == 1 )
rows = lines_used;
size_t* column_widths = (size_t*) calloc(sizeof(size_t*), columns);
size_t* column_widths = (size_t*) calloc(sizeof(size_t), columns);
if ( !column_widths )
error(1, errno, "calloc column widths");