summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2001-09-17 11:43:43 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2001-09-17 11:43:43 +0000
commit869cc2b0a80534a866e7c481a1ea4b6d2f0069fe (patch)
tree81e3a2e5f1216a207762701ee8ec1b2cc1f1b557 /src
parentfc24f0d05d345b35bfa705e7c996af927101fb7c (diff)
downloadxine-lib-869cc2b0a80534a866e7c481a1ea4b6d2f0069fe.tar.gz
xine-lib-869cc2b0a80534a866e7c481a1ea4b6d2f0069fe.tar.bz2
_xine_get_featured_input_plugin_ids: wrong parentheses - overwrites two bytes
at end of malloced block. CVS patchset: 650 CVS date: 2001/09/17 11:43:43
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/load_plugins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xine-engine/load_plugins.c b/src/xine-engine/load_plugins.c
index f315a04c9..03f009769 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.40 2001/09/06 18:38:12 jkeil Exp $
+ * $Id: load_plugins.c,v 1.41 2001/09/17 11:43:43 jkeil Exp $
*
*
* Load input/demux/audio_out/video_out/codec plugins
@@ -228,7 +228,7 @@ static char **_xine_get_featured_input_plugin_ids(xine_t *this, int feature) {
ip = this->input_plugins[i];
if(ip->get_capabilities(ip) & feature) {
- plugin_ids[n] = (char *) malloc (strlen(ip->get_identifier(ip)+1));
+ plugin_ids[n] = (char *) malloc (strlen(ip->get_identifier(ip)) + 1 );
strcpy (plugin_ids[n], ip->get_identifier(ip));
/* printf("%s(%d): %s is featured\n", */
/* __FUNCTION__, feature, ip->get_identifier(ip)); */