From: Yurii Rashkovskii Date: Fri, 23 Dec 2022 22:35:36 +0000 (-0800) Subject: Problem: confusing error message in snprintf_compat.h X-Git-Tag: json-c-0.17-20230812~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F803%2Fhead;p=thirdparty%2Fjson-c.git Problem: confusing error message in snprintf_compat.h Solution: fix it to reflect what's happening properly --- diff --git a/snprintf_compat.h b/snprintf_compat.h index 76f7a6ce..51fcb24a 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 */