diff --git a/challenges/rotate-2-dimensional-array-90-degrees/solutions/c/function/array_2D_int.c b/challenges/rotate-2-dimensional-array-90-degrees/solutions/c/function/array_2D_int.c index d34cab8..54269aa 100644 --- a/challenges/rotate-2-dimensional-array-90-degrees/solutions/c/function/array_2D_int.c +++ b/challenges/rotate-2-dimensional-array-90-degrees/solutions/c/function/array_2D_int.c @@ -13,7 +13,7 @@ void array_2D_int_print(int **array, size_t number_of_rows, size_t number_of_col } int **array_2D_int_input(size_t *number_of_rows, size_t *number_of_columns) { - int **array = malloc(sizeof(int)); + int **array = malloc(sizeof(int) * 2); *number_of_rows = 1; *number_of_columns = 1; array[0] = malloc(*number_of_columns * sizeof(int));