[PATCH] Fix swprintf_s call under MingW

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For some reason this call does not behave correctly.
This was causing vdservice to fail to run the agent if compiled
with MingW.

Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
---
 common/vdcommon.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/common/vdcommon.h b/common/vdcommon.h
index 93bb673..bc8ce33 100644
--- a/common/vdcommon.h
+++ b/common/vdcommon.h
@@ -62,8 +62,6 @@ typedef CRITICAL_SECTION mutex_t;
  * those functions are not required to be in that dll on the guest.
  */
 #ifdef OLDMSVCRT
-#define swprintf_s(buf, sz, format...) swprintf(buf, format)
-
 #ifndef _ftime_s
 #define _ftime_s(timeb) _ftime(timeb)
 #endif
-- 
2.7.4

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]