diff --git a/src/ChangeLog b/src/ChangeLog index f41be02ce..22dae77c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2002-08-25 Pavel Roskin + * man2hlp.c (handle_command): Remove quotes from TOPIC. + * key.c (get_event): Check gpm_fd before using it in FD_SET. If gpm_fd is -1 (gpm has died), disable mouse support. diff --git a/src/man2hlp.c b/src/man2hlp.c index 0942468f1..d75a6abe5 100644 --- a/src/man2hlp.c +++ b/src/man2hlp.c @@ -373,6 +373,15 @@ handle_command (char *buffer) print_error ("Syntax error: .\\\"TOPICS: no text"); return; } + /* Remove quotes */ + if (buffer[0] == '"') { + buffer++; + len = strlen (buffer); + if (buffer[len - 1] == '"') { + len--; + buffer[len] = 0; + } + } Topics = strdup (buffer); } else { /* Other commands are ignored */