Commits

Evan Gates  committed dcc34d1

fix make dist, fix joinuser patch

  • Participants
  • Parent commits f3a16f0
  • Tags 0.3

Comments (0)

Files changed (2)

 dist: clean
 	@echo creating dist tarball
 	@mkdir -p pcw-${VERSION}
-	@cp -R LICENSE Makefile README config.mk pcw.1 ${SRC} pcw-${VERSION}
+	@cp -R LICENSE Makefile README config.mk pcw.1 \
+		ii*.diff config.def.h cw_color.sh ${SRC} pcw-${VERSION}
 	@tar -cf pcw-${VERSION}.tar pcw-${VERSION}
 	@gzip pcw-${VERSION}.tar
 	@rm -rf pcw-${VERSION}

File ii-1.4-joinuser.diff

 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
 @@ -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);
 +	}
  }