Skip to content

Commit

Permalink
reduce config reading buffer size
Browse files Browse the repository at this point in the history
  • Loading branch information
Kethen committed Aug 1, 2024
1 parent d1cf227 commit b8b30c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,15 @@ void parse_config(){
}
}

char buf[1024] = {0};
char buf[128] = {0};
u32 len = sceIoRead(fd, buf, sizeof(buf));
if(len < 0){
LOG("failed reading %s after opening", path);
return;
}

int arg_idx = 0;
char arg_buf[1024] = {0};
char arg_buf[128] = {0};
u32 arg_buf_write_head = 0;
for(u32 i = 0;i <= len; i++){
if(len != sizeof(buf) && buf[i] != ' ' && buf[i] != '\n'){
Expand Down

0 comments on commit b8b30c3

Please sign in to comment.