Mercurial > pidgin.yaz
changeset 8477:d8c2a7613290
[gaim-migrate @ 9210]
read and write a size_t, which should work regardless of platform
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 20 Mar 2004 23:46:22 +0000 |
parents | e8aa46291f64 |
children | 824b871355b9 |
files | src/proxy.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/proxy.c Sat Mar 20 15:44:35 2004 +0000 +++ b/src/proxy.c Sat Mar 20 23:46:22 2004 +0000 @@ -549,7 +549,8 @@ write(child_out[1], &zero, sizeof(zero)); tmp = res; while(res) { - write(child_out[1], &(res->ai_addrlen), sizeof(res->ai_addrlen)); + size_t ai_addrlen = res->ai_addrlen; + write(child_out[1], &ai_addrlen, sizeof(ai_addrlen)); write(child_out[1], res->ai_addr, res->ai_addrlen); res = res->ai_next; }