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:
parent
a45b93785c
commit
8b52c0d818
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue