[GHC] #9726: Linker.c uses of swprintf() fail to compile on gcc 4.8.3
GHC
ghc-devs at haskell.org
Thu Oct 30 04:15:29 UTC 2014
#9726: Linker.c uses of swprintf() fail to compile on gcc 4.8.3
-------------------------------------+-------------------------------------
Reporter: gintas | Owner: gintas
Type: bug | Status: new
Priority: normal | Milestone:
Component: Runtime | Version: 7.9
System | Keywords:
Resolution: | Architecture: Unknown/Multiple
Operating System: Windows | Difficulty: Unknown
Type of failure: | Blocked By:
None/Unknown | Related Tickets:
Test Case: |
Blocking: |
Differential Revisions: Phab:D372 |
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <austin@…>):
In [changeset:"5ce1266a7d323fd4fe4262f07be908d65e5b5b43/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="5ce1266a7d323fd4fe4262f07be908d65e5b5b43"
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
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9726#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list