diff --git a/rtracker b/rtracker index 4e2e4db..fb0326c 100755 Binary files a/rtracker and b/rtracker differ diff --git a/rtracker.c b/rtracker.c index cbe356a..9c6c8d0 100644 --- a/rtracker.c +++ b/rtracker.c @@ -37,7 +37,10 @@ bool runCommand(char* command) { return false; } + // Clean out_i = 0; + memset(out, 0, sizeof(out)); + // Read the output a line at a time and store it in the out array while (fgets(path, sizeof(path), fp) != NULL) { strncpy(out[out_i], path, 100);