Skip to content

Commit

Permalink
Fix test causing segfault on some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
OverlineJunior committed Aug 24, 2023
1 parent 2980aed commit d7bd866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void array_to_string(int arr[], int len, char buffer[]) {
strcat(buffer, "[");

for (int i = 0; i < len; i++) {
char num_str[] = ";";
char num_str[3] = "";
sprintf(num_str, "%i", arr[i]);

strcat(buffer, num_str);
Expand Down

0 comments on commit d7bd866

Please sign in to comment.