From 6651035e2d430fd3fe1e22f5cce9e297b4255af7 Mon Sep 17 00:00:00 2001 From: Guenter Bartsch Date: Mon, 10 Dec 2001 22:30:53 +0000 Subject: =?UTF-8?q?malloc=20bugfix=20from=20Damien=20Clermont=C3=A9=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CVS patchset: 1215 CVS date: 2001/12/10 22:30:53 --- src/xine-engine/scratch.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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; ilines[i] = xine_xmalloc (1024); } -- cgit v1.2.3