Commit c945e36b authored by conrad's avatar conrad

fix snprintf limits in ot_flac_info() (incorrect after re-ordering...)

Patch by ogg.k.ogg.k


git-svn-id: http://svn.annodex.net/liboggz/trunk@3413 8158c8cd-e7e1-0310-9fa4-c5954c97daef
parent c0313812
......@@ -195,11 +195,11 @@ ot_flac_info (unsigned char * data, long len)
((data[29] >> 4)&0xf);
channels = 1 + ((data[29] >> 1)&0x7);
n = snprintf (buf, 120-n,
n = snprintf (buf, 120,
"\tAudio-Samplerate: %d Hz\n\tAudio-Channels: %d\n",
samplerate, channels);
snprintf (buf+n, 120,
snprintf (buf+n, 120-n,
"\tFLAC-Ogg-Mapping-Version: %d.%d\n",
version_major, version_minor);
......
Markdown is supported
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