Skip to content
Snippets Groups Projects
Commit 686542ba authored by rswindell's avatar rswindell
Browse files

Fix entry edit (off by 2) for serial/modem connections.

parent c109f799
Branches
Tags
No related merge requests found
...@@ -767,7 +767,7 @@ int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isd ...@@ -767,7 +767,7 @@ int edit_list(struct bbslist **list, struct bbslist *item,char *listpath,int isd
,opts); ,opts);
if(i>=0 && isdefault) if(i>=0 && isdefault)
i+=2; i+=2;
if(i>=0 && (item->conn_type==CONN_TYPE_MODEM || item->conn_type==CONN_TYPE_SERIAL)) if(i>=2 && (item->conn_type==CONN_TYPE_MODEM || item->conn_type==CONN_TYPE_SERIAL))
i++; /* no port number */ i++; /* no port number */
switch(i) { switch(i) {
case -1: case -1:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment