Skip to content

Commit

Permalink
increase length of string buffer
Browse files Browse the repository at this point in the history
Turns out we actually hit the old limit for the
pentominoes problem.
  • Loading branch information
Carl Masak committed Aug 14, 2011
1 parent 713246d commit a796ceb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion c/src/dancing-links.c
Expand Up @@ -137,7 +137,8 @@ struct solution_matrix_row *add_solution(solution_matrix *matrix) {
}

char *contents(struct solution_matrix_row *row) {
char *contents = malloc(50 * sizeof (char));
/* should really calculate string length here */
char *contents = malloc(200 * sizeof (char));
struct solution_matrix_value *value = row->first_value;
contents[0] = '\0';

Expand Down

0 comments on commit a796ceb

Please sign in to comment.