[tracker] tracker-extract-mp3.c: Don't run past an array.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tracker-extract-mp3.c: Don't run past an array.
- Date: Tue, 4 May 2010 14:16:28 +0000 (UTC)
commit bb0c8d41e222ac40144416c705651745ee603b44
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 5f84a12..65155f6 100644
--- a/src/tracker-extract/tracker-extract-mp3.c
+++ b/src/tracker-extract/tracker-extract-mp3.c
@@ -590,7 +590,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]