summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuenter Bartsch <guenter@users.sourceforge.net>2001-12-10 22:30:53 +0000
committerGuenter Bartsch <guenter@users.sourceforge.net>2001-12-10 22:30:53 +0000
commit6651035e2d430fd3fe1e22f5cce9e297b4255af7 (patch)
treeb32c01a70152a3233042b6718e9cb4afd6680880 /src
parent5a3c80ee69d86dbe0b9335bf1a07ed5c83e34cb5 (diff)
downloadxine-lib-6651035e2d430fd3fe1e22f5cce9e297b4255af7.tar.gz
xine-lib-6651035e2d430fd3fe1e22f5cce9e297b4255af7.tar.bz2
malloc bugfix from Damien Clermonté <damien.clermonte@free.fr>
CVS patchset: 1215 CVS date: 2001/12/10 22:30:53
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/scratch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xine-engine/scratch.c b/src/xine-engine/scratch.c
index 4d8336d46..88079be12 100644
--- a/src/xine-engine/scratch.c
+++ b/src/xine-engine/scratch.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: scratch.c,v 1.1 2001/12/09 17:24:39 guenter Exp $
+ * $Id: scratch.c,v 1.2 2001/12/10 22:30:53 guenter Exp $
*
* top-level xine functions
*
@@ -63,8 +63,8 @@ scratch_buffer_t *new_scratch_buffer (int num_lines) {
this = xine_xmalloc (sizeof (scratch_buffer_t));
- this->lines = xine_xmalloc (sizeof (char *) * num_lines+1);
- this->ordered = xine_xmalloc (sizeof (char *) * num_lines+1);
+ this->lines = xine_xmalloc (sizeof (char *) * (num_lines+1));
+ this->ordered = xine_xmalloc (sizeof (char *) * (num_lines+1));
for (i=0; i<num_lines; i++) {
this->lines[i] = xine_xmalloc (1024);
}