[tracker/tracker-0.8] tracker-extract-mp3.c: Don't run past an array.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] tracker-extract-mp3.c: Don't run past an array.
- Date: Thu, 6 May 2010 17:57:05 +0000 (UTC)
commit 01ed40ef0214ba4976a7599353262845f685df51
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue May 4 15:34:13 2010 +0200
tracker-extract-mp3.c: Don't run past an array.
src/tracker-extract/tracker-extract-mp3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-mp3.c b/src/tracker-extract/tracker-extract-mp3.c
index 6dcd2c9..e866afe 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -556,7 +556,7 @@ get_genre_number (const char *str, guint *genre)
static const gchar *
get_genre_name (guint number)
{
- if (number > G_N_ELEMENTS (genre_names)) {
+ if (number >= G_N_ELEMENTS (genre_names)) {
return NULL;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]