1
1

* charsets.c (convert_to_display): Don't crash on empty read

only strings.
(convert_from_input): Likewise.
Reported by David Martin <dmartina@excite.com>
Этот коммит содержится в:
Pavel Roskin 2002-11-11 14:48:37 +00:00
родитель 39f877f0bb
Коммит 5c0691349c
2 изменённых файлов: 11 добавлений и 2 удалений

Просмотреть файл

@ -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 */