From 05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4 Mon Sep 17 00:00:00 2001 From: Andrea Smith Date: Sun, 4 Oct 2020 10:58:58 -0500 Subject: Dereference on mapreduce.c line 36 --- P1/src/mapreduce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'P1') diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index 9fad791..807c1af 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -33,7 +33,7 @@ int main(int argc, char *argv[]) { //TODO: exec here char num[10]; sprintf(num, "%d", i); - execl("./mapper", "./mapper", num, NULL); + execl("./mapper", "./mapper", &num, NULL); } } -- cgit v1.2.3