mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
* editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
This commit is contained in:
parent
3f03b46b8d
commit
63d111db28
@ -1,3 +1,7 @@
|
||||
2002-08-27 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* editcmd.c (edit_printf): Use g_vsnprintf() instead of sprintf().
|
||||
|
||||
2002-08-24 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit-widget.h: Eliminate ERROR_FILE.
|
||||
@ -165,8 +169,8 @@
|
||||
* syntax.c (syntax_g_free): New macro to release and NULLify
|
||||
glib allocated memory area(s).
|
||||
(strdup_convert): Rename to ...
|
||||
(convert): ... this. Don't strdup passed string.
|
||||
(get_args): Use convert instead of strdup_convert.
|
||||
(convert): ... this. Don't strdup() passed string.
|
||||
(get_args): Use convert() instead of strdup_convert().
|
||||
(free_args): Make it do notning macro.
|
||||
(open_include_file): Eliminate p array. Use glib function to
|
||||
construct error_file_name. Use PATH_SEP instead of '/';
|
||||
@ -182,16 +186,16 @@
|
||||
|
||||
2001-12-22 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* editcmd.c (edit_goto_cmd): Use g_free to release f.
|
||||
* editcmd.c (edit_goto_cmd): Use g_free() to release f.
|
||||
(edit_save_file): Use PATH_SEP instead of '/'.
|
||||
Undefine "close" before closing file created by mc_mkstemps.
|
||||
Define close to mc_close after it - temporary fix.
|
||||
Define close to mc_close() after it - temporary fix.
|
||||
|
||||
(sprintf_p): Don't cast (char *) to (unsigned long).
|
||||
|
||||
* syntax.c (read_one_line): Undo last patch - errno is a
|
||||
function on some systems. Check ferror() status before
|
||||
everithing else if fgetc returns EOF.
|
||||
everything else if fgetc() returns EOF.
|
||||
Accept last line without trailing newline.
|
||||
|
||||
(compare_word_to_right): Don't cast p and q to unsigned long.
|
||||
|
@ -2297,7 +2297,7 @@ int edit_printf (WEdit * e, const char *fmt,...)
|
||||
va_list pa;
|
||||
char s[1024];
|
||||
va_start (pa, fmt);
|
||||
sprintf (s, fmt, pa);
|
||||
g_vsnprintf (s, sizeof (s), fmt, pa);
|
||||
i = edit_print_string (e, s);
|
||||
va_end (pa);
|
||||
return i;
|
||||
|
Loading…
Reference in New Issue
Block a user