mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
* wtools.c (message): Fix possible buffer overflow.
This commit is contained in:
parent
8c9c34918b
commit
b5cfea00e1
@ -1,5 +1,7 @@
|
||||
2002-07-25 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* wtools.c (message): Fix possible buffer overflow.
|
||||
|
||||
* slint.c [HAVE_MAD] (dealloc_color_pairs): Move ...
|
||||
* color.c [HAVE_MAD]: ... here and make accessible from
|
||||
other files to fix compilation.
|
||||
|
@ -294,7 +294,7 @@ Dlg_head *message (int error, char *header, const char *text, ...)
|
||||
/* Setup the display information */
|
||||
strcpy (buffer, "\n");
|
||||
va_start (args, text);
|
||||
g_vsnprintf (&buffer [1], sizeof (buffer) - 1, text, args);
|
||||
g_vsnprintf (&buffer [1], sizeof (buffer) - 2, text, args);
|
||||
strcat (buffer, "\n");
|
||||
va_end (args);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user