Skip to content

fix(webserver): PR #151 follow-up - #156

Merged
got3nks merged 2 commits into
amule-org:masterfrom
RealGreenDragon:pr_151_followup
Jun 14, 2026
Merged

fix(webserver): PR #151 follow-up#156
got3nks merged 2 commits into
amule-org:masterfrom
RealGreenDragon:pr_151_followup

Conversation

@RealGreenDragon

Copy link
Copy Markdown

See #151

@got3nks got3nks left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format-arg count mismatch — the format string now has 7 specifiers (added search_type=%d) but the va_args list still passes 6: search, ext, type, avail, min_size, max_size. search_type is declared but never passed, so at runtime the search_type= slot would print avail's value and every later field would shift by one.

Insert search_type between type and avail:

printf(..., search, ext, type, search_type, avail, min_size, max_size);

@RealGreenDragon

RealGreenDragon commented Jun 14, 2026

Copy link
Copy Markdown
Author

Sorry for mistake, fixed.

@RealGreenDragon
RealGreenDragon requested a review from got3nks June 14, 2026 13:20
@got3nks
got3nks merged commit eecebf0 into amule-org:master Jun 14, 2026
9 checks passed
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.

2 participants