summaryrefslogtreecommitdiff
path: root/chat/irssi/patches/patch-aa
blob: 1ba76ebfa46be114807d89b003a775b015a242eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-aa,v 1.4 2006/03/04 06:34:13 wiz Exp $

--- src/fe-text/tparm.c.orig	2005-10-19 04:13:29.000000000 +0200
+++ src/fe-text/tparm.c
@@ -247,7 +247,7 @@ char *tparm(const char *str, ...) {
 	argcnt = 0;
 	pos = 0;
 	termcap = 1;
-	while (*sp != '\0') {
+	while ((sp != NULL) && (*sp != '\0')) {
 		switch(*sp) {
 		case '\\':
 			if (scan_for) {