mirror of
https://github.com/simh/simh.git
synced 2026-02-26 08:44:38 +00:00
Cleanup the mux attach string for single line multiplexers
This commit is contained in:
@@ -672,6 +672,9 @@ for (i=0; i<mp->lines; ++i) {
|
||||
sprintf (growstring(&tptr, 12 + strlen (lp->port)), ",%s%s", lp->port, lp->notelnet ? ";notelnet" : "");
|
||||
}
|
||||
}
|
||||
if (mp->lines == 1)
|
||||
while ((*tptr == ',') || (*tptr == ' '))
|
||||
strcpy(tptr, tptr+1);
|
||||
if (*tptr == '\0') {
|
||||
free (tptr);
|
||||
tptr = NULL;
|
||||
|
||||
Reference in New Issue
Block a user