diff options
Diffstat (limited to 'src/core/net-nonblock.c')
-rw-r--r-- | src/core/net-nonblock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/net-nonblock.c b/src/core/net-nonblock.c index 3b76fe89..3eeef228 100644 --- a/src/core/net-nonblock.c +++ b/src/core/net-nonblock.c @@ -125,7 +125,7 @@ int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe, else { if (rec.host4) { len = strlen(rec.host4) + 1; - g_io_channel_write_block(pipe, (void *) &len, + g_io_channel_write_block(pipe, (void *) &len, sizeof(int)); g_io_channel_write_block(pipe, (void *) rec.host4, len); |