mirror of
https://github.com/payden/libwsclient
synced 2024-10-27 17:54:01 +00:00
Remove silly 1 byte memcpys
This commit is contained in:
parent
b09c6949eb
commit
fbca00fc4d
@ -868,7 +868,6 @@ int libwsclient_send_fragment(wsclient *client, char *strdata, int len, int flag
|
||||
len_size = 2;
|
||||
for(i = 0; i < len_size; i++) {
|
||||
*(data+2+i) = *((char *)&payload_len+(len_size-i-1));
|
||||
//memcpy(data+2+i, (void *)&payload_len+(len_size-i-1), 1);
|
||||
}
|
||||
}
|
||||
if(payload_len_small == 127) {
|
||||
@ -876,7 +875,6 @@ int libwsclient_send_fragment(wsclient *client, char *strdata, int len, int flag
|
||||
len_size = 8;
|
||||
for(i = 0; i < len_size; i++) {
|
||||
*(data+2+i) = *((char *)&payload_len+(len_size-i-1));
|
||||
//memcpy(data+2+i, (void *)&payload_len+(len_size-i-1), 1);
|
||||
}
|
||||
}
|
||||
for(i=0;i<4;i++)
|
||||
|
Loading…
Reference in New Issue
Block a user