]> granicus.if.org Git - json-c/commitdiff
Problem: confusing error message in snprintf_compat.h
authorYurii Rashkovskii <yrashk@gmail.com>
Fri, 23 Dec 2022 22:35:36 +0000 (14:35 -0800)
committerGitHub <noreply@github.com>
Fri, 23 Dec 2022 22:35:36 +0000 (14:35 -0800)
Solution: fix it to reflect what's happening properly

snprintf_compat.h

index 76f7a6ce22ee34bcbd44d3d98e6521691ee1af32..51fcb24af93f923f911948ff8358cf9bba1552fc 100644 (file)
@@ -35,7 +35,7 @@ static int json_c_snprintf(char *str, size_t size, const char *format, ...)
 #define snprintf json_c_snprintf
 
 #elif !defined(HAVE_SNPRINTF) /* !HAVE_SNPRINTF */
-#error Need vsnprintf!
+#error snprintf is required but was not found
 #endif /* !HAVE_SNPRINTF && defined(WIN32) */
 
 #endif /* __snprintf_compat_h */