diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 11:27:13 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 11:27:13 +0100 |
commit | f78fe11dba3b7bea57679b1deeead2929b7175c6 (patch) | |
tree | 7a73980a494587e514c7b59ced27d57eb831877e /src | |
parent | d4a43f8c11da38b9bd6fa54476d08efb4bff6fd1 (diff) | |
download | xine-lib-f78fe11dba3b7bea57679b1deeead2929b7175c6.tar.gz xine-lib-f78fe11dba3b7bea57679b1deeead2929b7175c6.tar.bz2 |
Mark handled_mrl const and make it a char array.
Use sizeof rather than strlen.
Diffstat (limited to 'src')
-rw-r--r-- | src/input/input_dvd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c index 8656097bc..e3b9ed091 100644 --- a/src/input/input_dvd.c +++ b/src/input/input_dvd.c @@ -1621,12 +1621,12 @@ static int dvd_plugin_open (input_plugin_t *this_gen) { static input_plugin_t *dvd_class_get_instance (input_class_t *class_gen, xine_stream_t *stream, const char *data) { dvd_input_plugin_t *this; dvd_input_class_t *class = (dvd_input_class_t*)class_gen; - static char *handled_mrl = "dvd:/"; + static const char handled_mrl[] = "dvd:/"; trace_print("Called\n"); /* Check we can handle this MRL */ - if (strncasecmp (data, handled_mrl, strlen(handled_mrl) ) != 0) + if (strncasecmp (data, handled_mrl, sizeof(handled_mrl)-1 ) != 0) return NULL; this = (dvd_input_plugin_t *) xine_xmalloc (sizeof (dvd_input_plugin_t)); |