patch-src_core_net_c 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- tmsnc-0.3.2.orig/src/core_net.c 2006-10-17 13:09:56.000000000 +0200
  3. +++ tmsnc-0.3.2/src/core_net.c 2009-06-02 01:17:33.000000000 +0200
  4. @@ -240,7 +240,7 @@ MSN_conversation_handle(sd, num_ppl, mes
  5. #endif
  6. memset(buf, 0x0, sizeof(buf));
  7. - if (getline(buf, sizeof(buf) - 1, sd) > 0) {
  8. + if (getline2(buf, sizeof(buf) - 1, sd) > 0) {
  9. #ifdef DEBUG
  10. debug_log("sb %d: %s", sd, buf);
  11. #endif
  12. @@ -278,7 +278,7 @@ MSN_conversation_handle(sd, num_ppl, mes
  13. header_len = 0;
  14. - while ((i = getline(buf, sizeof(buf) - 1, sd)) > 0) {
  15. + while ((i = getline2(buf, sizeof(buf) - 1, sd)) > 0) {
  16. header_len += i;
  17. #ifdef DEBUG
  18. debug_log("sb %d: %s", sd, buf);
  19. @@ -745,7 +745,7 @@ MSN_server_handle(session, message, mess
  20. return -1;
  21. timestamp = tm;
  22. }
  23. - while (getline(buf, sizeof(buf) - 1, session->sd) > 0) {
  24. + while (getline2(buf, sizeof(buf) - 1, session->sd) > 0) {
  25. #ifdef HAVE_ICONV
  26. strncpy(tr_buf, buf, sizeof(tr_buf) - 1);
  27. convert_from_utf8(tr_buf, sizeof(tr_buf), buf, sizeof(buf));
  28. @@ -1161,7 +1161,7 @@ MSN_load_userlist(session, cb)
  29. if (send(session->sd, buf, strlen(buf), 0) == 0)
  30. return -1;
  31. - if (getline(buf, sizeof(buf) - 1, session->sd) < 0)
  32. + if (getline2(buf, sizeof(buf) - 1, session->sd) < 0)
  33. return -1;
  34. if ((ptr = split(buf, ' ', 4)) == NULL)
  35. @@ -1191,7 +1191,7 @@ MSN_load_userlist(session, cb)
  36. i = 0;
  37. while (i < session->num_contacts) {
  38. - if (getline(buf, sizeof(buf) - 1, session->sd) < 0)
  39. + if (getline2(buf, sizeof(buf) - 1, session->sd) < 0)
  40. return -1;
  41. /*