Fixes.
This commit is contained in:
parent
a09f856c0d
commit
75c5af4575
1 changed files with 6 additions and 3 deletions
|
@ -77,9 +77,12 @@ namespace Controller {
|
|||
char buf[1024];
|
||||
FILE * output = fdopen((long long int)err, "r");
|
||||
while (fgets(buf, 1024, output)){
|
||||
for (unsigned int i = 0; i < 9 && buf[i] != ' '; i++){}
|
||||
unsigned int i = 0;
|
||||
while (i < 9 && buf[i] != ' '){
|
||||
++i;
|
||||
}
|
||||
if(i < 9){
|
||||
buf[i] = NULL;
|
||||
buf[i] = 0;
|
||||
Log(buf,buf+i+1);
|
||||
}else{
|
||||
printf("%s\n",buf);
|
||||
|
|
Loading…
Add table
Reference in a new issue