- Fix double linking of snprintf (_snprintf should be used in CRT).
authorAleksey Bragin <aleksey@reactos.org>
Thu, 3 Jul 2008 12:07:12 +0000 (12:07 +0000)
committerAleksey Bragin <aleksey@reactos.org>
Thu, 3 Jul 2008 12:07:12 +0000 (12:07 +0000)
- Add a #undef guard for snprintf in consistency with how it previously was implemented in CRT.

svn path=/trunk/; revision=34282

reactos/lib/sdk/crt/locale/locale.c
reactos/lib/sdk/crt/string/wcs.c

index 6d092f0..03f48cc 100644 (file)
@@ -489,7 +489,7 @@ char *setlocale(int category, const char *locale)
 
   MSVCRT_current_lc_all_lcid = lcid;
 
-  snprintf(MSVCRT_current_lc_all,MAX_LOCALE_LENGTH,"%s_%s.%s",
+  _snprintf(MSVCRT_current_lc_all,MAX_LOCALE_LENGTH,"%s_%s.%s",
           lc.found_language,lc.found_country,lc.found_codepage);
 
   switch (category) {
index d0708df..cfa253b 100644 (file)
@@ -48,6 +48,7 @@
 
 #undef sprintf
 #undef wsprintf
+#undef snprintf
 #undef vsnprintf
 #undef vprintf
 #undef vwprintf