Don't use vsprintf() anymore, but the replacement for vsnprintf()
authornbk <nbk>
Sun, 4 Sep 2005 16:53:58 +0000 (16:53 +0000)
committernbk <nbk>
Sun, 4 Sep 2005 16:53:58 +0000 (16:53 +0000)
in libradius instead.

src/lib/log.c

index b44f2f6..3d78943 100644 (file)
@@ -48,15 +48,7 @@ void librad_log(const char *fmt, ...)
        char my_errstr[sizeof(librad_errstr)];
 
        va_start(ap, fmt);
-
-#ifdef HAVE_VSNPRINTF
        vsnprintf(my_errstr, sizeof(my_errstr), fmt, ap);
-#else
-       vsprintf(my_errstr, fmt, ap);
-       if (strlen(my_errstr) >= sizeof(my_errstr))
-               /* What can we do .. */
-               _exit(42);
-#endif
        strcpy(librad_errstr, my_errstr);
        va_end(ap);
 }