forked from PsychoticNinja/irssi
Merge pull request #54 from dajohi/dcc_send_strict_aliasing
Do not break strict-aliasing rules.
This commit is contained in:
commit
5fe144503d
@ -293,7 +293,8 @@ static void dcc_send_read_size(SEND_DCC_REC *dcc)
|
|||||||
if (dcc->count_pos != 4)
|
if (dcc->count_pos != 4)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bytes = ntohl(*((guint32 *) dcc->count_buf));
|
memcpy(&bytes, dcc->count_buf, sizeof(bytes));
|
||||||
|
bytes = ntohl(bytes);
|
||||||
dcc->count_pos = 0;
|
dcc->count_pos = 0;
|
||||||
|
|
||||||
if (dcc->waitforend && bytes == (dcc->transfd & 0xffffffff)) {
|
if (dcc->waitforend && bytes == (dcc->transfd & 0xffffffff)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user