Skip to content

fixed file_id size in common.c - #88

Open
cyyself wants to merge 1 commit into
happyfish100:masterfrom
cyyself:master
Open

cyyself wants to merge 1 commit into
happyfish100:masterfrom
cyyself:master

Conversation

@cyyself

@cyyself cyyself commented Jul 7, 2021

Copy link
Copy Markdown

set file_id's size to 128 in function fdfs_http_request_handler will result in format-truncation warning in newer version gcc.

The most corner case of the length of bytes written to array file_id is 528 at src/common.c:903 determined by GCC. So set to 530 to get the compile error solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant