Ticket #4439: snprintf_win32_LF.patch

File snprintf_win32_LF.patch, 961 bytes (added by David Bussenschutt <davidbuzz@…>, 18 years ago)

same file, but with Unix line terminators to keep trac happy.

Line 
1*** libs/libmyth/compat_orig.h Mon Jan 7 15:29:29 2008
2--- libs/libmyth/compat.h Mon Jan 7 15:26:57 2008
3***************
4*** 16,21 ****
5--- 16,22 ----
6 #include <winsock2.h>
7 #include <ws2tcpip.h>
8 #define setsockopt(a, b, c, d, e) setsockopt(a, b, c, (const char*)(d), e)
9+ #include <stdio.h>
10 #undef close
11 #else
12 #include <sys/time.h> // Mac OS X needs this before sys/resource
13***************
14*** 202,208 ****
15 NULL, errCode,
16 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
17 errStr, 511, NULL))
18! sprintf(errStr, "dlopen()/dlsym() caused error %d", errCode);
19
20 return errStr;
21 }
22--- 203,209 ----
23 NULL, errCode,
24 MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
25 errStr, 511, NULL))
26! snprintf(errStr, 512, "dlopen()/dlsym() caused error %d", errCode);
27
28 return errStr;
29 }