Исправление бага с не обнулением места записи

This commit is contained in:
justuser-31 2025-02-25 11:05:43 +03:00
parent 8b7e8354c4
commit f2e620615b
2 changed files with 1 additions and 0 deletions

BIN
rtracker

Binary file not shown.

View File

@ -37,6 +37,7 @@ bool runCommand(char* command) {
return false;
}
out_i = 0;
// 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);