diff options
Diffstat (limited to 'lib/libarchive/archive_string_sprintf.c')
-rw-r--r-- | lib/libarchive/archive_string_sprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libarchive/archive_string_sprintf.c b/lib/libarchive/archive_string_sprintf.c index c24a747..5609dd9 100644 --- a/lib/libarchive/archive_string_sprintf.c +++ b/lib/libarchive/archive_string_sprintf.c @@ -24,7 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> +#include "archive_platform.h" __FBSDID("$FreeBSD$"); /* @@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$"); * the core code, so it cannot easily be omitted.) */ -#ifdef DMALLOC +#ifdef HAVE_DMALLOC #include <dmalloc.h> #endif #include <err.h> @@ -63,6 +63,7 @@ __archive_string_vsprintf(struct archive_string *as, const char *fmt, __archive_string_ensure(as, l + 1); l = vsnprintf(as->s, as->buffer_length, fmt, ap); } + as->length = l; } /* |