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

sprintf -> snprintf #2691

Merged
merged 2 commits into from
Dec 11, 2023
Merged

sprintf -> snprintf #2691

merged 2 commits into from
Dec 11, 2023

Commits on Dec 8, 2023

  1. Replaced trivial uses of sprintf with snprintf

    In all these cases the size of the buffer can be computed with sizeof.
    seanm committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    dfc2ac7 View commit details
    Browse the repository at this point in the history
  2. Replaced some sprintf with snprintf with aid of new variable containi…

    …ng size
    
    One case required slightly complicated accounting of how much space is left in the buffer.
    seanm committed Dec 8, 2023
    Configuration menu
    Copy the full SHA
    adc4dc1 View commit details
    Browse the repository at this point in the history