summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbell.c b/xbell.c
index c68814b..2d10d17 100644
--- a/xbell.c
+++ b/xbell.c
@@ -77,7 +77,7 @@ forkexecute()
t = strtok(NULL, " ");
z++;
}
- args[z+1] = (char *)0;
+ args[z] = (char *)0;
execvp(args[0], args);
_exit(1);
}