From 8b52c0d818af72bd2ab933a41f738d7c1f797e20 Mon Sep 17 00:00:00 2001 From: Jonas 'Sortie' Termansen Date: Fri, 8 Jan 2016 00:46:44 +0100 Subject: [PATCH] Fix wrong type in calloc sizeof. --- utils/column.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/column.cpp b/utils/column.cpp index f991e80a..c8343a4f 100644 --- a/utils/column.cpp +++ b/utils/column.cpp @@ -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");