fix doors

This commit is contained in:
Andrew Pamment 2017-03-26 12:40:42 +10:00
parent 8469882af3
commit 7292a47fd4

View File

@ -354,7 +354,7 @@ void runexternal(struct user_record *user, char *cmd, int stdio, char *argv[], c
if (!sshBBS) { if (!sshBBS) {
snprintf(buffer, 1024, "%s", cmd); snprintf(buffer, 1024, "%s", cmd);
for (i=0;argv[i] != NULL; i++) { 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) { if (cwd != NULL) {
chdir(cwd); chdir(cwd);