minor fixes
authorLaurent Mazet <mazet@softndesign.org>
Thu, 30 May 2024 21:54:29 +0000 (23:54 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Thu, 30 May 2024 21:54:29 +0000 (23:54 +0200)
display.c
scrabble.c

index 286c68e70cac6fa018333072c75ce10ec0840e2a..a7e2d64fdbd27d911521a9fb985006bb792ba46d 100644 (file)
--- a/display.c
+++ b/display.c
@@ -63,7 +63,7 @@ void showboard (play_t *play, board_t *board, int xoffset, int yoffset, int full
     for (x = -1; x <= board->xsize; x++) {
         for (y = -1; y <= board->ysize; y++) {
             int c = ' ';
-            char pos[4] = {0};
+            char pos[12] = {0};
             sprintf (pos, "%c%d", 'A' + x, 1 + y);
             if ((x == -1) && (y == -1)) {
                 c = ACS_ULCORNER;
index ddb49f768bb8c3bafd89cb4b34b5f7750b9ab22c..7eb2aa91f379a994c0db550c709dd514a21114a2 100644 (file)
@@ -162,6 +162,8 @@ int main (int argc, char *argv[])
             drawwindow (game, xoffset, 2 * yoffset + board->ysize, board->length);
             break;
         case KEY_ENTER:
+        case '\n':
+        case '\r':
         case 'd':
             game = retrievetiles (draw, board->length, game);
             letter = getnextletter (game);