A wrong strcpy call in CmdConnectToNetwork() of WiMAX-Network-Service?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux Netdev]     [Linux Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux