# HG changeset patch # User Stu Tomlinson # Date 1116099239 0 # Node ID aca17634b9ab7b5b04dff548b02050ca0eb77615 # Parent e52ec3cffff46ed376c29c018e1f84ea3036ff75 [gaim-migrate @ 12678] Ian Goldberg pointed out this was non-portable committer: Tailor Script diff -r e52ec3cffff4 -r aca17634b9ab src/proxy.c --- 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);