mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-03 18:59:44 +02:00
new_title may contain a \r, remove it
This commit is contained in:
@@ -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 */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user