gaim/gaim

Ian Goldberg pointed out this was non-portable
oldstatus
2005-05-14, Stu Tomlinson
397a81a11ddd
Parents 953a91703360
Children c185fbbafed9
Ian Goldberg pointed out this was non-portable
  • +4 -2
    src/proxy.c
  • --- a/src/proxy.c Sat May 14 10:55:52 2005 -0400
    +++ b/src/proxy.c Sat May 14 15:33:56 2005 -0400
    @@ -1500,9 +1500,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);