diff --git a/src/ChangeLog b/src/ChangeLog index 736a8f141..b1a9f135a 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2003-01-27 Pavel Roskin + + * main.c (update_xterm_title_path): Use is_printable(). + 2003-01-24 Pavel Roskin * slint.c (slang_reset_softkeys): Cast arguments from size_t to diff --git a/src/main.c b/src/main.c index f32443d42..5ca17f409 100644 --- a/src/main.c +++ b/src/main.c @@ -1844,7 +1844,7 @@ update_xterm_title_path (void) if (xterm_flag && xterm_title) { p = s = g_strdup (strip_home_and_password (cpanel->cwd)); do { - if (*s <= 32) + if (!is_printable (*s)) *s = '?'; } while (*++s); fprintf (stdout, "\33]0;mc - %s\7", p);