home · contact · privacy
Improved comment description of exit_err().
[plomrogue] / src / draw_wins.c
index 02b569cf1457eba6b78ad140b0ddc548b1455dd9..a72978cee1003393859ea7a3f4dc76936113e069 100644 (file)
@@ -223,13 +223,14 @@ extern void draw_keys_win(struct Win * win)
                            win->frame.size.y - 1);
     uint8_t keydescwidth = 9 + 1; /* max length assured by get_keyname() + \0 */
     char * keydesc = malloc(keydescwidth), * keyname;
+    char * err_hint = "Trouble with draw_scroll_hint() in draw_keys_win().";
     attr_t attri;
     for (y = 0; y <= world->keyswindata->max && y < win->frame.size.y; y++)
     {
         if (0 == y && offset > 0)
         {
             exit_err(draw_scroll_hint(&win->frame, y, offset + 1, '^'),
-                     world, NULL);
+                     world, err_hint);
             continue;
         }
         else if (win->frame.size.y == y + 1
@@ -239,7 +240,7 @@ extern void draw_keys_win(struct Win * win)
             exit_err(draw_scroll_hint(&win->frame, y,
                                       world->keyswindata->max
                                        - (offset + win->frame.size.y) + 2, 'v'),
-                     world, NULL);
+                     world, err_hint);
             continue;
         }
         attri = 0;