Fixed sscanf format specification.

This commit is contained in:
Janet B. Anderson
2003-07-29 20:55:41 +00:00
parent 4cb08f797a
commit 73c303192d
+1 -1
View File
@@ -90,7 +90,7 @@ epicsShareFunc int epicsShareAPI
/*
* check for a valid host name before giving up
*/
status = sscanf (pAddrString, "%511s:%i", hostName, &port);
status = sscanf (pAddrString, "%511[^:]:%i", hostName, &port );
if (status>=1) {
if (status==1) {
port = defaultPort;