ITS#8195 fix ITS#7027 regression, port number sign bit overflow

Another bug from 5de85b922aaa5bfa6eb53db6000adf01ebdb0736
This commit is contained in:
Howard Chu 2015-07-12 11:14:33 +01:00
parent 624c1fac8b
commit 4796f01209

View File

@ -399,7 +399,7 @@ add_size:;
if(cur>0){
hostlist[cur++]=' ';
}
cur += sprintf(&hostlist[cur], "%s:%hd", hostent_head[i].hostname, hostent_head[i].port);
cur += sprintf(&hostlist[cur], "%s:%hu", hostent_head[i].hostname, hostent_head[i].port);
}
}