Skip to content
  • gintas's avatar
    Use snwprintf instead of swprintf in rts/Linker.c. · 5ce1266a
    gintas authored
    Summary:
    swprintf has different signatures in mingw32, where it does not include the
    buffer size, and in mingw-w64, where it does. That of course breaks the code
    as mingw-w64 treats the pointer to the format string as a size_t.
    
    snwprintf is available in both environments and is consistent, so use that
    instead.
    
    Reviewers: simonmar, austin
    
    Reviewed By: austin
    
    Subscribers: #ghc_windows_task_force, thomie, carter, simonmar
    
    Differential Revision: https://phabricator.haskell.org/D372
    
    GHC Trac Issues: #9726
    5ce1266a