mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
* xterm.c (x_io_error_quitter): Don't overrun sprintf buffer.
This commit is contained in:
parent
b7163a504a
commit
ae58ff1fbc
2 changed files with 4 additions and 1 deletions
|
|
@ -97,6 +97,8 @@
|
|||
* xfns.c (x_window): Make sprintf buffer a bit bigger
|
||||
to avoid potential buffer overrun.
|
||||
|
||||
* xterm.c (x_io_error_quitter): Don't overrun sprintf buffer.
|
||||
|
||||
2011-08-26 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Integer and memory overflow issues (Bug#9196).
|
||||
|
|
|
|||
|
|
@ -7900,7 +7900,8 @@ x_io_error_quitter (Display *display)
|
|||
{
|
||||
char buf[256];
|
||||
|
||||
sprintf (buf, "Connection lost to X server `%s'", DisplayString (display));
|
||||
snprintf (buf, sizeof buf, "Connection lost to X server `%s'",
|
||||
DisplayString (display));
|
||||
x_connection_closed (display, buf);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue