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

@@ -1337,11 +1337,7 @@ nh_snprintf(
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? */
impossible("snprintf %s: func %s, file line %d",