Commits

Anonymous committed 04f09b6

fix again

Comments (0)

Files changed (1)

 diff -r d93eaacde742 ii.c
 --- a/ii.c	Fri Jun 25 10:55:05 2010 +0200
-+++ b/ii.c	Tue Jul 13 02:20:46 2010 -0700
++++ b/ii.c	Tue Jul 13 09:29:23 2010 -0700
 @@ -105,6 +105,7 @@
  	return open(infile, O_RDONLY | O_NONBLOCK, 0);
  }
 +
 +	if(name[0] && !((name[0]=='#')||(name[0]=='&')||(name[0]=='+')||(name[0]=='!'))) {
 +		char msg[128];
-+		snprintf(msg, PIPE_BUF, "-!- %s has joined %s", nick, name);
++		snprintf(msg, sizeof(msg), "-!- %s has joined %s", nick, name);
 +		print_out(name, msg);
 +	}
  }