summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2003-10-02 07:21:32 +0000
committerbland <bland@FreeBSD.org>2003-10-02 07:21:32 +0000
commitb561e256878bce8ae5a000c5b574dd24a957af52 (patch)
treea9dddfbebabc03ea2c39d2392a9d97b9fb27c99a /net
parent50ce3d94fc255cd20e572b0ce73a4845c86acd9e (diff)
downloadFreeBSD-ports-b561e256878bce8ae5a000c5b574dd24a957af52.zip
FreeBSD-ports-b561e256878bce8ae5a000c5b574dd24a957af52.tar.gz
Fix crash in IP address formatting code for buddy tooltip.
Reported by: Aleksey Sosnin <sam@macomnet.ru>
Diffstat (limited to 'net')
-rw-r--r--net/gaim/Makefile1
-rw-r--r--net/gaim/files/patch-src::protocols::oscar.c19
2 files changed, 20 insertions, 0 deletions
diff --git a/net/gaim/Makefile b/net/gaim/Makefile
index 260c638..f7bd0f1 100644
--- a/net/gaim/Makefile
+++ b/net/gaim/Makefile
@@ -6,6 +6,7 @@
PORTNAME= gaim
PORTVERSION= 0.70
+PORTREVISION= 1
CATEGORIES?= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/net/gaim/files/patch-src::protocols::oscar.c b/net/gaim/files/patch-src::protocols::oscar.c
new file mode 100644
index 0000000..308431d
--- /dev/null
+++ b/net/gaim/files/patch-src::protocols::oscar.c
@@ -0,0 +1,19 @@
+--- src/protocols/oscar/oscar.c.orig Thu Oct 2 15:40:55 2003
++++ src/protocols/oscar/oscar.c Thu Oct 2 15:59:38 2003
+@@ -5462,11 +5462,11 @@
+ free(tstr);
+
+ if (bi->ipaddr) {
+- char *tstr = g_strdup_printf("%hhd.%hhd.%hhd.%hhd",
+- (bi->ipaddr & 0xff000000) >> 24,
+- (bi->ipaddr & 0x00ff0000) >> 16,
+- (bi->ipaddr & 0x0000ff00) >> 8,
+- (bi->ipaddr & 0x000000ff));
++ char *tstr = g_strdup_printf("%hhu.%hhu.%hhu.%hhu",
++ (char)(bi->ipaddr >> 24),
++ (char)(bi->ipaddr >> 16),
++ (char)(bi->ipaddr >> 8),
++ (char)bi->ipaddr);
+ tmp = yay;
+ yay = g_strconcat(tmp, _("<b>IP Address:</b> "), tstr, "\n", NULL);
+ free(tmp);
OpenPOWER on IntegriCloud