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
1 changed files with 1 additions and 1 deletions

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");