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

wxrc: GetInternalFileName: Call to Printf: Format string arg is now constant. #24547

Commits on May 20, 2024

  1. wxrc: GetInternalFileName: Call to Printf: Format string arg is n…

    …ow constant.
    
    In the original code:
    
    ```
    s.Printf(wxFileNameFromPath(parOutput) + wxT("$%03i-") + name2, i);
    ```
    
    if `wxFileNameFromPath(parOutput2)` or `name2` had contained `'%'` (format specifiers),
    the results would have been bad.
    
    These strings are now given as additional arguments to `Printf`
    (corresponding to `"%s"` format specifiers),
    and the format string argument itself is now constant.
    DoctorNoobingstoneIPresume authored and DoctorNoobingstoneIPresume committed May 20, 2024
    Configuration menu
    Copy the full SHA
    2b8cba8 View commit details
    Browse the repository at this point in the history