summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYurii Rashkovskii <yrashk@gmail.com>2022-12-23 14:35:36 -0800
committerGitHub <noreply@github.com>2022-12-23 14:35:36 -0800
commit7b971b52aae602c733ba6bff8152cbdb486b54a1 (patch)
tree8b78e45eb83f543e3f5c57c17da1defd91ea0a93
parent79c147203e2f90806fba0487fc26ab5e649c8755 (diff)
downloadjson-c-7b971b52aae602c733ba6bff8152cbdb486b54a1.tar.gz
Problem: confusing error message in snprintf_compat.h
Solution: fix it to reflect what's happening properly
-rw-r--r--snprintf_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/snprintf_compat.h b/snprintf_compat.h
index 76f7a6c..51fcb24 100644
--- a/snprintf_compat.h
+++ b/snprintf_compat.h
@@ -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 */