freebsd-ports/audio/vorbis-tools/files/patch-ogg123_vorbis_comments.c
Christian Weisgerber 70ad5f30f9 Update to 1.4.0. Improvements in this release:
* Implement corrected channel mappings for all input and playback file types
* Correct an possible infinite loop in WAV input reading code when
  header is corrupt
* Implement "disable_coupling" option for oggenc
* Fix Ctrl-C lockup bug in ogg123
* ogg123 directory playback in sorted order
* Add WAVEFORMATEXTENSIBLE support
* More translations
* Add '-' as stdin/out filename in vcut
* Remove 'extra' F parameter from ogg123 remote output
* Numerous code and build fixes

Local improvements:
* ogg123 does not segfault on unknown comments.
* Honor WITHOUT_NLS.
2010-06-06 20:37:33 +00:00

12 lines
379 B
C

$FreeBSD$
--- ogg123/vorbis_comments.c.orig 2010-06-05 16:48:23.000000000 +0200
+++ ogg123/vorbis_comments.c 2010-06-05 16:55:21.000000000 +0200
@@ -72,7 +72,7 @@ char *lookup_comment_prettyprint (char *
/* Use default formatting */
j = strcspn(comment, "=");
- if (j) {
+ if (j != strlen(comment)) {
*offset = j + 1;
s = malloc(j + 2);
if (s == NULL) {