Introduction
Introduction Statistics Contact Development Disclaimer Help
fixed possible NULL pointer reference on sparc - ii - irc it, simple FIFO based…
git clone git://git.suckless.org/ii
Log
Files
Refs
README
LICENSE
---
commit 081c33b7868a7a834d6ab3063e75acb8cb3a77ed
parent 79b934f3fee8a8f103f79c7f855833a215170505
Author: Nico Golde <[email protected]>
Date: Mon, 16 Jul 2007 08:00:48 +0200
fixed possible NULL pointer reference on sparc
Diffstat:
M ii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ii.c b/ii.c
@@ -206,7 +206,7 @@ static void print_out(char *channel, char *buf) {
static char buft[18];
time_t t = time(0);
- snprintf(server, sizeof(server), "-!- %s", channel);
+ if(channel) snprintf(server, sizeof(server), "-!- %s", channel);
if(strstr(buf, server)) channel="";
create_filepath(outfile, sizeof(outfile), channel, "out");
if(!(out = fopen(outfile, "a"))) return;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.