1 | Created by: Ben Woods <woodsb02@FreeBSD.org> (FreeBSD port maintainer) |
---|
2 | Logged upstream: https://www.midnight-commander.org/ticket/3643 |
---|
3 | |
---|
4 | --- src/cons.handler.c.orig 2016-05-11 09:47:32 UTC |
---|
5 | +++ src/cons.handler.c |
---|
6 | @@ -408,7 +408,7 @@ show_console_contents_freebsd (int start |
---|
7 | for (line = begin_line; line <= end_line; line++) |
---|
8 | { |
---|
9 | tty_gotoyx (starty + line - begin_line, 0); |
---|
10 | - for (col = 0; col < min (COLS, screen_info.mv_csz); col++) |
---|
11 | + for (col = 0; col < MIN (COLS, screen_info.mv_csz); col++) |
---|
12 | { |
---|
13 | c = screen_shot.buf[line * screen_info.mv_csz + col] & 0xFF; |
---|
14 | tty_print_char (c); |
---|