diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/dcc/dcc-send.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/irc/dcc/dcc-send.c b/src/irc/dcc/dcc-send.c index 6d2b794d..930ef770 100644 --- a/src/irc/dcc/dcc-send.c +++ b/src/irc/dcc/dcc-send.c @@ -293,7 +293,8 @@ static void dcc_send_read_size(SEND_DCC_REC *dcc) if (dcc->count_pos != 4) return; - bytes = ntohl(*((guint32 *) dcc->count_buf)); + memcpy(&bytes, dcc->count_buf, sizeof(bytes)); + bytes = ntohl(bytes); dcc->count_pos = 0; if (dcc->waitforend && bytes == (dcc->transfd & 0xffffffff)) { |