diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:40:31 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-13 22:40:31 +0200 |
commit | bc08742b7ee940fcc0da034fee25154e4d3a1021 (patch) | |
tree | 5ef6297d931bce8895c619def996e2c946fea333 | |
parent | 0464eec0a8086cca0b5138d5ac3c24be24b4ddeb (diff) | |
download | xine-lib-bc08742b7ee940fcc0da034fee25154e4d3a1021.tar.gz xine-lib-bc08742b7ee940fcc0da034fee25154e4d3a1021.tar.bz2 |
Avoid strlen on a literal, use a sizeof.
-rw-r--r-- | src/xine-engine/load_plugins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c index 0d84e5c28..2f07591cf 100644 --- a/src/xine-engine/load_plugins.c +++ b/src/xine-engine/load_plugins.c @@ -1086,7 +1086,7 @@ static char *catalog_filename(xine_t *this, int createdir) { const char *const xdg_cache_home = xdgCacheHome(this->basedir_handle); char *cachefile = NULL; - cachefile = xine_xmalloc( strlen(xdg_cache_home) + strlen("/"PACKAGE"/plugins.cache") ); + cachefile = xine_xmalloc( strlen(xdg_cache_home) + sizeof("/"PACKAGE"/plugins.cache") ); strcpy(cachefile, xdg_cache_home); /* If we're going to create the directory structure, we concatenate |