From 53c537b8dd3c9ba2c99bedd14abdb5b16b124c81 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 29 Dec 2012 07:40:21 -0800 Subject: [PATCH] Cleanup the mux attach string for single line multiplexers --- sim_tmxr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sim_tmxr.c b/sim_tmxr.c index 36093e47..f88d7f7e 100644 --- a/sim_tmxr.c +++ b/sim_tmxr.c @@ -672,6 +672,9 @@ for (i=0; ilines; ++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;