Commit 80be2823 authored by Josh Coalson's avatar Josh Coalson
Browse files

MSVC has _snprintf but no snprintf (go figure)

parent f70353b3
......@@ -84,7 +84,11 @@ static FLAC__bool append_tag_(FLAC__StreamMetadata *block, const char *format, c
FLAC__ASSERT(0 != value);
buffer[sizeof(buffer)-1] = '\0';
#if defined _MSC_VER || defined __MINGW32__
_snprintf(buffer, sizeof(buffer)-1, format, name, value);
snprintf(buffer, sizeof(buffer)-1, format, name, value);
entry.entry = buffer;
entry.length = strlen(buffer);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment