From 6128c0631c7e502234dd97bd0d988d0338e91483 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 10 Feb 2004 04:20:43 +0000 Subject: [PATCH] Oops. Fix null-terminator. svn path=/trunk/icecast/; revision=5816 --- src/format_mp3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/format_mp3.c b/src/format_mp3.c index ebc8e6af..cced1267 100644 --- a/src/format_mp3.c +++ b/src/format_mp3.c @@ -331,7 +331,7 @@ static int format_mp3_get_buffer(format_plugin_t *self, char *data, memcpy(state->metadata, state->metadata_buffer + 13, state->metadata_length - 15); - state->metadata[state->metadata_length - 2] = 0; + state->metadata[state->metadata_length - 15] = 0; free(state->metadata_buffer); } else