[ros-diffs] [fireball] 34282: - Fix double linking of snprintf (_snprintf should be used in CRT). - Add a #undef guard for snprintf in consistency with how it previously was implemented in CRT.

fireball at svn.reactos.org fireball at svn.reactos.org
Thu Jul 3 14:07:12 CEST 2008


Author: fireball
Date: Thu Jul  3 07:07:12 2008
New Revision: 34282

URL: http://svn.reactos.org/svn/reactos?rev=34282&view=rev
Log:
- Fix double linking of snprintf (_snprintf should be used in CRT).
- Add a #undef guard for snprintf in consistency with how it previously was implemented in CRT.

Modified:
    trunk/reactos/lib/sdk/crt/locale/locale.c
    trunk/reactos/lib/sdk/crt/string/wcs.c

Modified: trunk/reactos/lib/sdk/crt/locale/locale.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/locale/locale.c?rev=34282&r1=34281&r2=34282&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/locale/locale.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/locale/locale.c [iso-8859-1] Thu Jul  3 07:07:12 2008
@@ -489,7 +489,7 @@
 
   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) {

Modified: trunk/reactos/lib/sdk/crt/string/wcs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/wcs.c?rev=34282&r1=34281&r2=34282&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/wcs.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/wcs.c [iso-8859-1] Thu Jul  3 07:07:12 2008
@@ -48,6 +48,7 @@
 
 #undef sprintf
 #undef wsprintf
+#undef snprintf
 #undef vsnprintf
 #undef vprintf
 #undef vwprintf



More information about the Ros-diffs mailing list