[hackers] [sic] applied clamiax' patch for null messages || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Fri, 30 Oct 2009 09:35:03 +0000 (UTC)

changeset: 103:1a16922119a7
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Fri Oct 30 09:34:59 2009 +0000
files: sic.c
description:
applied clamiax' patch for null messages

diff -r ec556de589a3 -r 1a16922119a7 sic.c
--- a/sic.c Wed Sep 23 12:52:13 2009 -0400
+++ b/sic.c Fri Oct 30 09:34:59 2009 +0000
@@ -73,9 +73,8 @@
                 snprintf(bufout, sizeof bufout, "JOIN %s\r\n", msg + 3);
         else if(strncmp(msg + 1, "l ", 2) == 0)
                 snprintf(bufout, sizeof bufout, "PART %s :sic - 250 LOC are too much!\r\n", msg + 3);
- else if(strncmp(msg + 1, "m ", 2) == 0) {
- if((p = strchr(msg + 3, ' ')))
- *(p++) = '\0';
+ else if(strncmp(msg + 1, "m ", 2) == 0 && (p = strchr(msg + 3, ' '))) {
+ *(p++) = '\0';
                 privmsg(msg + 3, p);
                 return;
         }
Received on Fri Oct 30 2009 - 09:35:03 UTC

This archive was generated by hypermail 2.2.0 : Fri Oct 30 2009 - 09:36:06 UTC