Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect format specifier #870

Closed
szsam opened this issue Mar 3, 2024 · 1 comment
Closed

Incorrect format specifier #870

szsam opened this issue Mar 3, 2024 · 1 comment

Comments

@szsam
Copy link
Contributor

szsam commented Mar 3, 2024

tk_snprintf(text, sizeof(text), "change title:%d", random() % 100);

Return type of random() is long, so format specifier %ld should be used.

xianjimli added a commit that referenced this issue Mar 4, 2024
@xianjimli
Copy link
Member

已修改,谢谢。

@szsam szsam closed this as completed Mar 4, 2024
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

No branches or pull requests

2 participants