Fix startup on MS-Windows when 'gdb.ini' is found in $HOME
authorEli Zaretskii <eliz@gnu.org>
Mon, 2 May 2016 16:37:43 +0000 (19:37 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 2 May 2016 16:37:43 +0000 (19:37 +0300)
commit1270fac69d2f7e89161ccb780ce3b17466da34ea
tree52a71edbaa0e1a545c22f2ca013af8ef92863b8b
parent2e1fb61c58b4a5579a43d9ff3cae8382347e323e
Fix startup on MS-Windows when 'gdb.ini' is found in $HOME

* windows-nat.c (_initialize_check_for_gdb_ini): Fix off-by-one
error in allocation of space for "$HOME/.gdbinit" string.  This
caused GDB to abort on startup whenever a '~/gdb.ini' file was
actually found, because xsnprintf would hit an assertion
violation.
gdb/ChangeLog
gdb/windows-nat.c