Re: [Mingw-w64-public] [PATCH] crt: Call the right __stdio_common_* function in UCRT _vsnwprintf

2019-05-08 Thread Martin Storsjö

On Wed, 8 May 2019, Liu Hao wrote:


在 2019/5/7 下午2:42, Martin Storsjö 写道:

Signed-off-by: Martin Storsjö 
---
This also should be applied on the v6.x branch.
---
 mingw-w64-crt/stdio/ucrt__vsnwprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c 
b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
index 4a8f275ba..bf9f4de2a 100644
--- a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
+++ b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
@@ -10,6 +10,6 @@

 int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const 
wchar_t * __restrict__ _Format,va_list _Args) __MINGW_ATTRIB_DEPRECATED_SEC_WARN
 {
-  return 
__stdio_common_vsprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
+  return 
__stdio_common_vswprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
 }
 int __cdecl (*__MINGW_IMP_SYMBOL(_vsnwprintf))(wchar_t *__restrict__, size_t, 
const wchar_t *__restrict__, va_list) = _vsnwprintf;



Looks good to me.


Thanks! Pushed and backported to v6.x.

// Martin

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] crt: Call the right __stdio_common_* function in UCRT _vsnwprintf

2019-05-07 Thread Liu Hao
在 2019/5/7 下午2:42, Martin Storsjö 写道:
> Signed-off-by: Martin Storsjö 
> ---
> This also should be applied on the v6.x branch.
> ---
>  mingw-w64-crt/stdio/ucrt__vsnwprintf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c 
> b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
> index 4a8f275ba..bf9f4de2a 100644
> --- a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
> +++ b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
> @@ -10,6 +10,6 @@
>  
>  int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const 
> wchar_t * __restrict__ _Format,va_list _Args) 
> __MINGW_ATTRIB_DEPRECATED_SEC_WARN
>  {
> -  return 
> __stdio_common_vsprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
> _Dest, _Count, _Format, NULL, _Args);
> +  return 
> __stdio_common_vswprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
> _Dest, _Count, _Format, NULL, _Args);
>  }
>  int __cdecl (*__MINGW_IMP_SYMBOL(_vsnwprintf))(wchar_t *__restrict__, 
> size_t, const wchar_t *__restrict__, va_list) = _vsnwprintf;
> 

Looks good to me.


-- 
Best regards,
LH_Mouse



-- 
Best regards,
ltpmouse



signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] crt: Call the right __stdio_common_* function in UCRT _vsnwprintf

2019-05-07 Thread Martin Storsjö
Signed-off-by: Martin Storsjö 
---
This also should be applied on the v6.x branch.
---
 mingw-w64-crt/stdio/ucrt__vsnwprintf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c 
b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
index 4a8f275ba..bf9f4de2a 100644
--- a/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
+++ b/mingw-w64-crt/stdio/ucrt__vsnwprintf.c
@@ -10,6 +10,6 @@
 
 int __cdecl _vsnwprintf(wchar_t * __restrict__ _Dest,size_t _Count,const 
wchar_t * __restrict__ _Format,va_list _Args) __MINGW_ATTRIB_DEPRECATED_SEC_WARN
 {
-  return 
__stdio_common_vsprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
+  return 
__stdio_common_vswprintf(UCRTBASE_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, 
_Dest, _Count, _Format, NULL, _Args);
 }
 int __cdecl (*__MINGW_IMP_SYMBOL(_vsnwprintf))(wchar_t *__restrict__, size_t, 
const wchar_t *__restrict__, va_list) = _vsnwprintf;
-- 
2.17.1



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public