ext/board.c in chess-0.0.4 vs ext/board.c in chess-0.0.5
- old
+ new
@@ -51,10 +51,10 @@
}
char*
print_board (Board *board)
{
- char *s = (char *) malloc (250);
+ char *s = (char *) malloc (251);
int si = 0;
int i, j;
for (i = 7; i >= 0; i--) // rank => top to bottom
{
sprintf (&s[si], "\e[37m%d\e[0m ", i + 1);
\ No newline at end of file