Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: 24bfef2ef4b5
Choose a base ref
...
head repository: joyent/libuv
compare: c6ecf97aafc8
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 8, 2013

  1. windows: use _snwprintf(), not swprintf()

    Drop the _CRT_NON_CONFORMING_SWPRINTFS hack and just use _snwprintf().
    
    It's a long and complicated story but the gist of it is that the MS CRT
    had a swprintf() function before ISO C did, with a different function
    prototype to boot: the ISO C one takes a |size| argument, the MS one
    does not.
    
    The function prototype that's exported by mingw and mingw-w64 depends
    on the mingw version and the _CRT_NON_CONFORMING_SWPRINTFS define.
    If they don't match up, you get the wrong prototype and things will
    crash at run-time.
    
    Reduce the phase space by sidestepping the whole issue: drop swprintf()
    altogether and use _snwprintf() from now on.
    
    Fixes #990.
    bnoordhuis committed Nov 8, 2013
    Copy the full SHA
    c6ecf97 View commit details
    Browse the repository at this point in the history