Forráskód Böngészése

Require at least 3 arguments (3rd Argument is string) instead of 4

Christian von Arnim 6 éve
szülő
commit
01c75de7fe
1 módosított fájl, 2 hozzáadás és 1 törlés
  1. 2 1
      arch/win32/ua_architecture.h

+ 2 - 1
arch/win32/ua_architecture.h

@@ -122,7 +122,8 @@ void UA_sleep_ms(size_t ms);
 #define UA_calloc calloc
 #define UA_realloc realloc
 
-#define UA_snprintf(source, size, string, ...) _snprintf_s(source, size, _TRUNCATE, string, __VA_ARGS__)
+/* 3rd Argument is the string */
+#define UA_snprintf(source, size, ...) _snprintf_s(source, size, _TRUNCATE, __VA_ARGS__)
 
 #define UA_LOG_SOCKET_ERRNO_WRAP(LOG) { \
     char *errno_str = NULL; \