* charsets.c (convert_to_display): Don't crash on empty read
only strings. (convert_from_input): Likewise. Reported by David Martin <dmartina@excite.com>
Этот коммит содержится в:
родитель
39f877f0bb
Коммит
5c0691349c
@ -1,5 +1,10 @@
|
||||
2002-11-11 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* charsets.c (convert_to_display): Don't crash on empty read
|
||||
only strings.
|
||||
(convert_from_input): Likewise.
|
||||
Reported by David Martin <dmartina@excite.com>
|
||||
|
||||
* screen.c (select_item): Don't show the file selection if the
|
||||
panel is inactive.
|
||||
(chdir_other_panel): Select the same file on the other panel.
|
||||
|
@ -230,8 +230,10 @@ convert_to_display (char *str)
|
||||
if (!str)
|
||||
return;
|
||||
|
||||
while ((*str = conv_displ[(unsigned char) *str]))
|
||||
while (*str) {
|
||||
*str = conv_displ[(unsigned char) *str];
|
||||
str++;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
@ -240,7 +242,9 @@ convert_from_input (char *str)
|
||||
if (!str)
|
||||
return;
|
||||
|
||||
while ((*str = conv_input[(unsigned char) *str]))
|
||||
while (*str) {
|
||||
*str = conv_input[(unsigned char) *str];
|
||||
str++;
|
||||
}
|
||||
}
|
||||
#endif /* HAVE_CHARSET */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user