Mercurial > pidgin.yaz
changeset 10917:aca17634b9ab
[gaim-migrate @ 12678]
Ian Goldberg pointed out this was non-portable
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Sat, 14 May 2005 19:33:59 +0000 |
parents | e52ec3cffff4 |
children | 893921a6cc6e |
files | src/proxy.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/proxy.c Sat May 14 14:56:18 2005 +0000 +++ b/src/proxy.c Sat May 14 19:33:59 2005 +0000 @@ -1586,9 +1586,11 @@ buf[0] = 0x01; /* version 1 */ buf[1] = i; - memcpy(buf + 2, gaim_proxy_info_get_username(phb->gpi), i); + if (u != NULL) + memcpy(buf + 2, u, i); buf[2 + i] = j; - memcpy(buf + 2 + i + 1, gaim_proxy_info_get_password(phb->gpi), j); + if (p != NULL) + memcpy(buf + 2 + i + 1, p, j); if (write(source, buf, 3 + i + j) < 3 + i + j) { close(source);