Changed how execResposnes work

This commit is contained in:
Nate Choe
2022-02-10 09:43:23 -06:00
parent e5967f7ead
commit b91bb8614d
2 changed files with 2 additions and 2 deletions

View File

@@ -150,7 +150,7 @@ static int execResponse(Connection *conn, char *path) {
close(output[1]);
exit(EXIT_FAILURE);
}
args[0] = path;
args[0] = conn->path;
for (int i = 0; i < conn->fieldCount; i++) {
args[i * 2 + 1] = conn->fields[i].field;
args[i * 2 + 2] = conn->fields[i].value;