Commit c12cd952 authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

add a couple of assertions here just to be sure (#108066).

* src/vte.c(vte_terminal_io_read): add a couple of assertions here just to
	be sure (#108066).
parent 09204fe9
2003-04-21 nalin
* src/vte.c(vte_terminal_io_read): add a couple of assertions here
just to be sure (#108066).
2003-04-21 nalin
* src/pty.c(_vte_pty_ptsname): don't depend on PATH_MAX being
available and correct (#109805).
......
......@@ -7109,6 +7109,8 @@ vte_terminal_io_read(GIOChannel *channel,
/* Read half of the chunk size. */
bcount = sizeof(buf) / 2;
}
g_assert(bcount >= 0);
g_assert(bcount <= sizeof(buf));
bcount = read(fd, buf, MAX(bcount, sizeof(buf) / 2));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment