On Mon, 20 May 2002, Davide Libenzi wrote:

>
> On Tue, 21 May 2002 [EMAIL PROTECTED] wrote:
>
> >
> > Hi Davide,
> >
> > Great! 1.8 is out, however I guess something is still left out:
>
> sigh, i was doing too many things at a time. i fixed it in my 1.9 tree

for the impatients, this is the function to replace in MiscUtils.cpp :



int             MscSetupServerNetPath(ServerNetPath & SvrPath, char const
* pszConnSpec,
                        int iDefPortNo)
{

    char const     *pszColon = strchr(pszConnSpec, ':');
    char            szServer[MAX_HOST_NAME] = "";

    ZeroData(SvrPath);

    if (pszColon != NULL)
    {
        int             iIPLen = Min((int) (pszColon - pszConnSpec),
sizeof(szServer) - 1);

        strncpy(szServer, pszConnSpec, iIPLen);
        szServer[iIPLen] = '\0';

        pszConnSpec = szServer;

        SvrPath.iPortNo = atoi(pszColon + 1);
    }
    else
        SvrPath.iPortNo = iDefPortNo;

    return (MscGetServerAddress(pszConnSpec, SvrPath.NetAddr));

}




- Davide


-
To unsubscribe from this list: send the line "unsubscribe xmail" in
the body of a message to [EMAIL PROTECTED]
For general help: send the line "help" in the body of a message to
[EMAIL PROTECTED]

Reply via email to