From 7292a47fd4cb9f6a869fadf9704676aac68a05c4 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 26 Mar 2017 12:40:42 +1000 Subject: [PATCH] fix doors --- doors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doors.c b/doors.c index 36b4ff3..cd85d35 100644 --- a/doors.c +++ b/doors.c @@ -354,7 +354,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c if (!sshBBS) { snprintf(buffer, 1024, "%s", cmd); for (i=0;argv[i] != NULL; i++) { - snprintf(&buffer[strlen(buffer) - 1], 1024 - strlen(buffer), " %s", argv[i]); + snprintf(&buffer[strlen(buffer)], 1024 - strlen(buffer), " %s", argv[i]); } if (cwd != NULL) { chdir(cwd);