Cleanup the mux attach string for single line multiplexers
This commit is contained in:
parent
9d2811d666
commit
53c537b8dd
1 changed files with 3 additions and 0 deletions
|
@ -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" : "");
|
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') {
|
if (*tptr == '\0') {
|
||||||
free (tptr);
|
free (tptr);
|
||||||
tptr = NULL;
|
tptr = NULL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue