Browse Source

new_title may contain a \r, remove it

pre-master-46
Holger Vogt 7 years ago
parent
commit
cdc8d3d054
  1. 4
      src/frontend/inpcom.c

4
src/frontend/inpcom.c

@ -872,7 +872,9 @@ struct inp_read_t inp_read(
tfree(new_title);
new_title = copy(s);
if ((s = strchr(new_title, '\n')) != NULL)
*s = ' ';
*s = '\0';
if ((s = strchr(new_title, '\r')) != NULL)
*s = '\0';
*buffer = '*'; /* change .TITLE line to comment line */
}

Loading…
Cancel
Save