A wrong strcpy call in CmdConnectToNetwork() of WiMAX-Network-Service?
Zhu Yanhai
yanhai.zhu at linux.intel.com
Tue Feb 23 17:58:00 PST 2010
Inaky,
I happen to see there is a strange strcpy in CmdConnectToNetwork() of WiMAX-Network-Service:
userCredentials = (wmx_pUserCredentials_t)malloc(sizeof(struct wmx_UserCredentials_t));
if (password != NULL)
{
// convert incoming Char to Wide Char - params are (to, from, len)
strcpy(password,userCredentials->password);
}
It seems that it should be strcpy(userCredentials->password, password)?
Regards,
Zhu Yanhai
More information about the wimax
mailing list