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

Bian bianxg at yahoo.cn
Tue Feb 17 01:08:26 EST 2009


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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.packetizer.com/pipermail/h323plus/attachments/20090217/be08fb1e/attachment-0003.html>


More information about the h323plus mailing list