View | Details | Raw Unified | Return to bug 103597
Collapse All | Expand All

(-)/usr/ports/irc/irssi/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	irssi
8
PORTNAME=	irssi
9
PORTVERSION=	0.8.10
9
PORTVERSION=	0.8.10
10
PORTREVISION?=	2
10
PORTREVISION?=	3
11
CATEGORIES?=	irc
11
CATEGORIES?=	irc
12
MASTER_SITES=	http://mirror.irssi.org/
12
MASTER_SITES=	http://mirror.irssi.org/
13
13
(-)/usr/ports/irc/irssi/files/patch-topic_length (+21 lines)
Line 0 Link Here
1
--- src/fe-common/core/formats.c.orig	Fri Dec  9 01:32:44 2005
2
+++ src/fe-common/core/formats.c	Mon Sep 25 06:15:26 2006
3
@@ -376,6 +376,7 @@
4
 	GString *tmp;
5
 	const char *start;
6
 #ifdef HAVE_GLIB2
7
+	const char *oldstr;
8
 	gboolean utf8;
9
 #endif
10
 	g_return_val_if_fail(str != NULL, 0);
11
@@ -404,7 +405,10 @@
12
 		}
13
 
14
 #ifdef HAVE_GLIB2
15
+		oldstr = str;
16
 		len -= advance(&str, utf8);
17
+		if(len < 0)
18
+			str = oldstr;
19
 #else
20
 	  len--;
21
 		str++;

Return to bug 103597