You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
425 B
11 lines
425 B
--- a/svr-runopts.c
|
|
+++ b/svr-runopts.c
|
|
@@ -325,7 +325,7 @@ static void addportandaddress(char* spec
|
|
myspec = m_strdup(spec);
|
|
|
|
/* search for ':', that separates address and port */
|
|
- svr_opts.ports[svr_opts.portcount] = strchr(myspec, ':');
|
|
+ svr_opts.ports[svr_opts.portcount] = strrchr(myspec, ':');
|
|
|
|
if (svr_opts.ports[svr_opts.portcount] == NULL) {
|
|
/* no ':' -> the whole string specifies just a port */
|
|
|