Исправление бага с не обнулением места записи
This commit is contained in:
parent
8b7e8354c4
commit
f2e620615b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user