ircyrano

reenact cyrano de bergerac on an IRC server
git clone https://a3nm.net/git/ircyrano/
Log | Files | Refs | README

commit f451b8136648a4638c38e7bf71c11d414244923e
parent 8e758753a6b477cae81a8b30ac4a21d22c0cca53
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sat, 15 Dec 2012 23:39:12 +0100

no prefix issues

Diffstat:
writer.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/writer.c b/writer.c @@ -16,7 +16,7 @@ int main(int argc, char **argv) { while ((res = getline(&line, (size_t*) &size, stdin)) != -1) { for (i=0; i<argc-1; i++) { if (strncmp(argv[i+1], line, strlen(argv[i+1])) == 0 - && line[strlen(argv[i+1])]) { + && line[strlen(argv[i+1])] == ' ') { fprintf(descriptors[i], "%s", line + strlen(argv[i+1]) + 1); fflush(descriptors[i]); break;