1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00
This commit is contained in:
Nicolas Viennot 2016-01-02 19:57:55 -05:00
parent c92180333b
commit 52f686b621

View File

@ -58,19 +58,19 @@ static void do_snapshot(__unused struct tmate_unpacker *uk,
pack(array, 2);
str_len = 0;
for (i = 0; i < line->cellsize; i++) {
grid_get_cell(grid, line_i, i, &gc);
grid_get_cell(grid, i, line_i, &gc);
str_len += gc.data.size;
}
pack(str, str_len);
for (i = 0; i < line->cellsize; i++) {
grid_get_cell(grid, line_i, i, &gc);
grid_get_cell(grid, i, line_i, &gc);
pack(str_body, gc.data.data, gc.data.size);
}
pack(array, line->cellsize);
for (i = 0; i < line->cellsize; i++) {
grid_get_cell(grid, line_i, i, &gc);
grid_get_cell(grid, i, line_i, &gc);
pack(unsigned_int, ((gc.flags << 24) |
(gc.attr << 16) |
(gc.bg << 8) |