Lowercase the new hostname in asChangeClient()

This commit is contained in:
Andrew Johnson
2008-09-12 14:44:49 +00:00
parent b2ce57294f
commit e47fc8b757
+4
View File
@@ -360,9 +360,13 @@ long epicsShareAPI asChangeClient(
{
ASGCLIENT *pasgclient = asClientPvt;
long status;
int ind;
if(!asActive) return(S_asLib_asNotActive);
if(!pasgclient) return(S_asLib_badClient);
for(ind=0; ind<strlen(host); ind++) {
host[ind] = (char)tolower((int)host[ind]);
}
LOCK;
pasgclient->level = asl;
pasgclient->user = user;