[xiph-commits] r3413 - liboggz/trunk/src/tools
conrad at svn.annodex.net
conrad at svn.annodex.net
Wed Feb 6 22:39:57 PST 2008
Author: conrad
Date: 2008-02-06 22:39:57 -0800 (Wed, 06 Feb 2008)
New Revision: 3413
Modified:
liboggz/trunk/src/tools/oggz_tools.c
Log:
fix snprintf limits in ot_flac_info() (incorrect after re-ordering...)
Patch by ogg.k.ogg.k
Modified: liboggz/trunk/src/tools/oggz_tools.c
===================================================================
--- liboggz/trunk/src/tools/oggz_tools.c 2008-02-07 06:35:32 UTC (rev 3412)
+++ liboggz/trunk/src/tools/oggz_tools.c 2008-02-07 06:39:57 UTC (rev 3413)
@@ -195,11 +195,11 @@
((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);
More information about the commits
mailing list