summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrunme.sh2
-rw-r--r--segfault.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/runme.sh b/runme.sh
index 649ec36..3b76b31 100755
--- a/runme.sh
+++ b/runme.sh
@@ -1,5 +1,5 @@
#!/bin/sh
export LD_LIBRARY_PATH=`pwd`/libirc
./shell&
-./segfault SegFault$$
+./segfault Seg
wait
diff --git a/segfault.c b/segfault.c
index 2e8060c..304aea3 100644
--- a/segfault.c
+++ b/segfault.c
@@ -149,8 +149,7 @@ char *format_magic(int fd,char *from,char *nick,char *orig_fmt,char *arg) {
sz+=strlen(args[c]);
sz+=strlen(notargs[c]);
c++;
- i++;
- j=i;
+ j=i+1;
break;
}
}