[wiki] [sites] wiki updated
changeset: 584:ec7a506a7476
tag: tip
user: Evan Gates <evan.gates_AT_gmail.com>
date: Thu Jul 08 00:58:19 2010 -0700
files: tools.suckless.org/ii/patches/ii-1.4-joinuser.diff
description:
small bugfix, use correct length for msg
diff -r 5f813aca88c1 -r ec7a506a7476 tools.suckless.org/ii/patches/ii-1.4-joinuser.diff
--- a/tools.suckless.org/ii/patches/ii-1.4-joinuser.diff Wed Jul 07 23:57:36 2010 -0400
+++ b/tools.suckless.org/ii/patches/ii-1.4-joinuser.diff Thu Jul 08 00:58:19 2010 -0700
_AT_@ -1,6 +1,6 @@
diff -r d93eaacde742 ii.c
--- a/ii.c Fri Jun 25 10:55:05 2010 +0200
-+++ b/ii.c Fri Jul 02 11:46:55 2010 -0700
++++ b/ii.c Thu Jul 08 00:55:27 2010 -0700
_AT_@ -105,6 +105,7 @@
return open(infile, O_RDONLY | O_NONBLOCK, 0);
}
_AT_@ -16,7 +16,7 @@
+
+ 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);
+ }
}
Received on Thu Jul 08 2010 - 09:58:43 CEST
This archive was generated by hypermail 2.3.0
: Thu Sep 13 2012 - 19:31:22 CEST