Changes from A. Samoilov
Этот коммит содержится в:
родитель
eb50e4dc40
Коммит
e0d1cc5c2c
@ -1,3 +1,7 @@
|
||||
* gtkedit/syntax.c (upgrade_syntax_file): possible buffer overflow
|
||||
fixed, some messages gettext()ed again here and in
|
||||
gtkedit/editmenu.c:edit_about_cmd()
|
||||
|
||||
2000-03-13 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
|
||||
|
||||
* doc/mc.sgml (Examples): Fixed documentation, thanx
|
||||
|
@ -71,14 +71,14 @@ void edit_wrap_cmd ()
|
||||
|
||||
void edit_about_cmd ()
|
||||
{
|
||||
edit_message_dialog (wedit->mainid, 20, 20, " About ",
|
||||
"\n"
|
||||
edit_message_dialog (wedit->mainid, 20, 20, _(" About "),
|
||||
_("\n"
|
||||
" Cooledit v3.11.5\n"
|
||||
"\n"
|
||||
" Copyright (C) 1996 the Free Software Foundation\n"
|
||||
"\n"
|
||||
" A user friendly text editor written\n"
|
||||
" for the Midnight Commander.\n"
|
||||
" for the Midnight Commander.\n")
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -42,8 +42,6 @@ extern int option_syntax_highlighting;
|
||||
|
||||
void i18n_translate_array (char *array[])
|
||||
{
|
||||
size_t maxlen = 0;
|
||||
|
||||
while (*array!=NULL) {
|
||||
*array = _(*array);
|
||||
array++;
|
||||
|
@ -1352,8 +1352,8 @@ FILE *upgrade_syntax_file (char *syntax_file)
|
||||
fclose (f);
|
||||
return fopen (syntax_file, "r");
|
||||
}
|
||||
memset (line, 0, 79);
|
||||
fread (line, 80, 1, f);
|
||||
memset (line, 0, sizeof (line));
|
||||
fread (line, sizeof (line) - 1, 1, f);
|
||||
if (!strstr (line, "syntax rules version"))
|
||||
goto rename_rule_file;
|
||||
p = strstr (line, "version") + strlen ("version") + 1;
|
||||
@ -1366,9 +1366,9 @@ FILE *upgrade_syntax_file (char *syntax_file)
|
||||
rename (syntax_file, s);
|
||||
unlink (syntax_file); /* might rename() fail ? */
|
||||
#if defined(MIDNIGHT) || defined(GTK)
|
||||
edit_message_dialog (" Load Syntax Rules ", " Your syntax rule file is outdated \n A new rule file is being installed. \n Your old rule file has been saved with a .OLD extension. ");
|
||||
edit_message_dialog (_(" Load Syntax Rules "), _(" Your syntax rule file is outdated \n A new rule file is being installed. \n Your old rule file has been saved with a .OLD extension. "));
|
||||
#else
|
||||
CMessageDialog (0, 20, 20, 0, " Load Syntax Rules ", " Your syntax rule file is outdated \n A new rule file is being installed. \n Your old rule file has been saved with a .OLD extension. ");
|
||||
CMessageDialog (0, 20, 20, 0,_(" Load Syntax Rules "), _(" Your syntax rule file is outdated \n A new rule file is being installed. \n Your old rule file has been saved with a .OLD extension. "));
|
||||
#endif
|
||||
return upgrade_syntax_file (syntax_file);
|
||||
}
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user