diff options
author | Gintautas Miliauskas <gintautas.miliauskas@gmail.com> | 2014-10-29 23:13:31 -0500 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2014-10-29 23:13:32 -0500 |
commit | 5ce1266a7d323fd4fe4262f07be908d65e5b5b43 (patch) | |
tree | 0da3dfd51956fd6b9f75f4ee17aa1598c52554f3 /mk | |
parent | 257cbec2f605c31d335a6709b43754a88f184d9d (diff) | |
download | haskell-5ce1266a7d323fd4fe4262f07be908d65e5b5b43.tar.gz |
Use snwprintf instead of swprintf in rts/Linker.c.
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
Diffstat (limited to 'mk')
0 files changed, 0 insertions, 0 deletions