Permalink
Browse files

increase length of string buffer

Turns out we actually hit the old limit for the
pentominoes problem.
  • Loading branch information...
1 parent 713246d commit a796ceb46a5fbe37927a77899425a7b237d4259c @masak committed Aug 14, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 c/src/dancing-links.c
View
@@ -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';

0 comments on commit a796ceb

Please sign in to comment.