Date: Sun, 19 May 2002 10:40:03 -0700 (PDT) From: Hiroo Ono <hiroo@oikumene.gcd.org> To: freebsd-ports@FreeBSD.org Subject: Re: ports/38254: Update net/micq to 0.4.8pl10 Message-ID: <200205191740.g4JHe3S76003@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/38254; it has been noted by GNATS. From: Hiroo Ono <hiroo@oikumene.gcd.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: Re: ports/38254: Update net/micq to 0.4.8pl10 Date: Mon, 20 May 2002 02:21:26 +0900 Hello. Sorry, replace files/patch-src::icq_response.c to the patch below, it is a little better (not perfect) for logging Russian or Japanese messages when russian or japanese option is on. Remaining problem: When you toggle russian or japanese option in micqrc, encoding of messages saved in log files changes. I am seeking for the fix, but as the weekend is being over, I will not have enough time for fixing this before port freeze... --- src/icq_response.c.orig Sat May 18 12:19:16 2002 +++ src/icq_response.c Sun May 19 23:15:39 2002 @@ -503,14 +503,14 @@ if (v1 || v2 || v3 || v4) { strcat (buf, " "); - sprintf (buf + strlen (buf), "%d.%d", v1, v2); - if (v3 || v4) sprintf (buf + strlen (buf), ".%d", v3); - if (v4) sprintf (buf + strlen (buf), " cvs %d", v4); + snprintf (buf + strlen (buf), sizeof (buf) - strlen (buf), "%d.%d", v1, v2); + if (v3 || v4) snprintf (buf + strlen (buf), sizeof (buf) - strlen (buf), ".%d", v3); + if (v4) snprintf (buf + strlen (buf), sizeof (buf) - strlen (buf), " cvs %d", v4); } if (ssl) strcat (buf, "/SSL"); } else if (prG->verbose) - sprintf (buf, "%s %08x", i18n (1827, "Unknown client"), (unsigned int)tstamp); + snprintf (buf, sizeof (buf), "%s %08x", i18n (1827, "Unknown client"), (unsigned int)tstamp); else buf[0] = '\0'; @@ -629,6 +629,7 @@ int x, m; cdata = strdup (text); + ConvWinUnix(cdata); TabAddUIN (uin); /* Adds <uin> to the tab-list */ UtilCheckUIN (sess, uin); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205191740.g4JHe3S76003>