[h323plus] bug fix: PString H323GatekeeperServer::CreateEndPointIdentifier()

Jan Willamowius jan at willamowius.de
Tue Feb 17 04:54:50 EST 2009


Hi,

thanks for pointing that out. I applied a slightly different fix to the
CVS.

Regards,
Jan

Bian wrote:
> in gkserver.cxx 
> 
> variable identifierBase is defined as type time_t  and in vs2008 time_t is  type __time64_t ( __int64 )
> 
> psprintf("%x:%u", identifierBase, nextIdentifier++)  always output "xxxxxx:0", then CreateEndPointIdentifier() will return same indentifier at anytime
> 
> PString H323GatekeeperServer::CreateEndPointIdentifier()
> {
>   PWaitAndSignal wait(mutex);
>   //return psprintf("%x:%u", identifierBase, nextIdentifier++); //  <---bug here
>   return psprintf("%x:%u", (int)identifierBase, nextIdentifier++);
> }
> 
> Best Regards,
> 
> bian
> 
> 
>       ___________________________________________________________ 
>   好玩贺卡等你发,邮箱贺卡全新上线! 
> http://card.mail.cn.yahoo.com/


-- 
Jan Willamowius, jan at willamowius.de, http://www.willamowius.de/




More information about the h323plus mailing list