Fix crashes in a text-mode session on Windows.
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2013 19:28:13 +0000 (22:28 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2013 19:28:13 +0000 (22:28 +0300)
commit9337e20653c80e332555d109b945180cf41171fa
treec8aa352b0b5eeb3d9e23ebd571ed1bfefcafb925
parent7f203aa1fde2bc9ec43aa05a939525cdab149832
Fix crashes in a text-mode session on Windows.

 src/w32console.c (initialize_w32_display): Return the dimensions of
 the console window via 2 additional arguments, not via the current
 frame.  This avoids crashes due to overrunning the bounds of
 frame's decode_mode_spec_buffer, which is not resized following
 the change of the frame dimensions from the initial 10x10.
 src/w32term.h (w32_initialize_display_info): Adjust prototype.
 src/term.c (init_tty): Take dimensions of the frame from the values
 returned by initialize_w32_display.
src/ChangeLog
src/term.c
src/w32console.c
src/w32term.h