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

This commit is contained in:
2026-06-11 13:18:07 +03:00
parent fed9e37245
commit 795a123c88
2 changed files with 1 additions and 0 deletions
BIN
View File
Binary file not shown.
+1
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);