]> The Tcpdump Group git mirrors - libpcap/blobdiff - missing/win_asprintf.c
Remove some workarounds for old compilers.
[libpcap] / missing / win_asprintf.c
index cce6296065fc80b9abcd44ccd0962e48a2ecdc21..e4bd13c61920e03ff8bb378180e9d8a3765f50a1 100644 (file)
@@ -23,7 +23,7 @@ pcap_vasprintf(char **strp, const char *format, va_list args)
                *strp = NULL;
                return (-1);
        }
-       ret = pcap_vsnprintf(str, str_size, format, args);
+       ret = vsnprintf(str, str_size, format, args);
        if (ret == -1) {
                free(str);
                *strp = NULL;
@@ -31,7 +31,7 @@ pcap_vasprintf(char **strp, const char *format, va_list args)
        }
        *strp = str;
        /*
-        * pcap_vsnprintf() shouldn't truncate the string, as we have
+        * vsnprintf() shouldn't truncate the string, as we have
         * allocated a buffer large enough to hold the string, so its
         * return value should be the number of characters printed.
         */