patch-src_misc_c 589 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- tmsnc-0.3.2.orig/src/misc.c 2006-10-17 13:09:56.000000000 +0200
  3. +++ tmsnc-0.3.2/src/misc.c 2009-06-02 01:16:30.000000000 +0200
  4. @@ -126,7 +126,7 @@ UI_check_for_updates(void)
  5. "Host: tmsnc.sourceforge.net\r\n\r\n", 59, 0) < 0)
  6. UI_err_exit("Couldn't send HTTP request");
  7. - while (getline(buf, sizeof(buf) - 1, sd) > 0) {
  8. + while (getline2(buf, sizeof(buf) - 1, sd) > 0) {
  9. buf[strlen(buf) - 1] = 0x0;
  10. if (strncmp(buf, "Version", 7) == 0) {
  11. if (strcmp(&buf[9], VERSION) == 0) {