Remove NO_VSNPRINTF

Affects only ancient VMS where vsnprintf wasn't available.
This commit is contained in:
Pasi Kallinen
2023-01-06 15:53:03 +02:00
parent 18fa85c681
commit 030fc0036a
8 changed files with 2 additions and 46 deletions

View File

@@ -283,11 +283,7 @@ nh_snprintf(const char *func UNUSED, int line UNUSED, char *str, size_t size,
int n;
va_start(ap, fmt);
#ifdef NO_VSNPRINTF
n = vsprintf(str, fmt, ap);
#else
n = vsnprintf(str, size, fmt, ap);
#endif
va_end(ap);
if (n < 0 || (size_t)n >= size) { /* is there a problem? */