summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-07-22 14:27:48 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-07-22 14:27:48 +0000
commit80e681312358422a60c9078552f8c53edf2054a1 (patch)
treecc6e68d0fb214f75a3badd7840f6207029475304
parent2681262ab242eda636927f45ac1195da5215157e (diff)
downloadxine-lib-80e681312358422a60c9078552f8c53edf2054a1.tar.gz
xine-lib-80e681312358422a60c9078552f8c53edf2054a1.tar.bz2
2 extra bytes is enough, one for the '/' and one for '\0'
CVS patchset: 6838 CVS date: 2004/07/22 14:27:48
-rw-r--r--src/xine-engine/load_plugins.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c
index 113ff3a37..f72a9107f 100644
--- a/src/xine-engine/load_plugins.c
+++ b/src/xine-engine/load_plugins.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: load_plugins.c,v 1.183 2004/06/23 19:45:52 mroi Exp $
+ * $Id: load_plugins.c,v 1.184 2004/07/22 14:27:48 mroi Exp $
*
*
* Load input/demux/audio_out/video_out/codec plugins
@@ -925,12 +925,12 @@ static void save_catalog (xine_t *this) {
const char *dirname = CACHE_CATALOG_DIR;
cachefile = (char *) xine_xmalloc(strlen(xine_get_homedir()) +
- strlen(relname) + 3);
+ strlen(relname) + 2);
sprintf(cachefile, "%s/%s", xine_get_homedir(), relname);
/* make sure homedir (~/.xine) exists */
dirfile = (char *) xine_xmalloc(strlen(xine_get_homedir()) +
- strlen(dirname) + 3);
+ strlen(dirname) + 2);
sprintf(dirfile, "%s/%s", xine_get_homedir(), dirname);
mkdir (dirfile, 0755);
free (dirfile);
@@ -963,7 +963,7 @@ static void load_cached_catalog (xine_t *this) {
const char *relname = CACHE_CATALOG_FILE;
cachefile = (char *) xine_xmalloc(strlen(xine_get_homedir()) +
- strlen(relname) + 3);
+ strlen(relname) + 2);
sprintf(cachefile, "%s/%s", xine_get_homedir(), relname);
if( (fp = fopen(cachefile,"r")) != NULL ) {