fix doors
This commit is contained in:
parent
8469882af3
commit
7292a47fd4
2
doors.c
2
doors.c
@ -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);
|
||||||
|
Reference in New Issue
Block a user