Fixed issue when copying key.
This commit is contained in:
parent
c2bad2ddea
commit
e19555be6c
@ -158,7 +158,10 @@ int main(void)
|
|||||||
decryptText(sendKEY, buffer);
|
decryptText(sendKEY, buffer);
|
||||||
|
|
||||||
aux.ID = req.ID;
|
aux.ID = req.ID;
|
||||||
memccpy(aux.key, sendKEY, 0, 256);
|
for (size_t i = 0; i < 256; i++)
|
||||||
|
{
|
||||||
|
aux.key[i] = sendKEY[i];
|
||||||
|
}
|
||||||
aux.level = req.level;
|
aux.level = req.level;
|
||||||
aux.type = req.type;
|
aux.type = req.type;
|
||||||
send(connfd, &aux, sizeof(aux), 0);
|
send(connfd, &aux, sizeof(aux), 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user