summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hoyt <dhoyt@llnl.gov>2010-03-15 18:45:13 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-03-15 18:45:13 +0000
commitcfa8de336c2a1693fa53dc2fe727a53b7c5f82cb (patch)
tree9abf75bd02dd9ced72d9ea63bb51058433715d6c
parent2e1f3242bf54c6e9e74e0d10cd1d2d9f910b3812 (diff)
typefind: use g_ascii_strncasecmp() instead of strncasecmp()
g_ascii_strncasecmp() is more portable and likely more robust as well (with random binary data as input). Fixes #612845.
-rw-r--r--gst/typefind/gsttypefindfunctions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/typefind/gsttypefindfunctions.c b/gst/typefind/gsttypefindfunctions.c
index a15eb174a..46b571a1d 100644
--- a/gst/typefind/gsttypefindfunctions.c
+++ b/gst/typefind/gsttypefindfunctions.c
@@ -2477,8 +2477,8 @@ mod_type_find (GstTypeFind * tf, gpointer unused)
}
/* STM */
if ((data = gst_type_find_peek (tf, 20, 8)) != NULL) {
- if (strncasecmp ((gchar *) data, "!Scream!", 8) == 0 ||
- strncasecmp ((gchar *) data, "BMOD2STM", 8) == 0) {
+ if (g_ascii_strncasecmp ((gchar *) data, "!Scream!", 8) == 0 ||
+ g_ascii_strncasecmp ((gchar *) data, "BMOD2STM", 8) == 0) {
guint8 *id, *stmtype;
if ((id = gst_type_find_peek (tf, 28, 1)) == NULL)