From 0e247961c06da6d71e82a1736bb43790603fc647 Mon Sep 17 00:00:00 2001 From: Christophe Massiot Date: Mon, 7 Oct 2002 21:58:40 +0000 Subject: [PATCH] * HACKING : documentation for the automake crash * http.c : fixed a problem with seeking with large files --- HACKING | 8 +++++++- modules/access/http.c | 7 +++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/HACKING b/HACKING index d7eb783fc3..c5425dfb62 100644 --- a/HACKING +++ b/HACKING @@ -1,4 +1,4 @@ -$Id: HACKING,v 1.5 2002/09/30 11:05:32 sam Exp $ +$Id: HACKING,v 1.6 2002/10/07 21:58:40 massiot Exp $ Hacking vlc =========== @@ -23,6 +23,12 @@ you can check out a CVS tree on an OS that provides these tools (such as a recent Linux distribution), run bootstrap, and then copy the whole tree to your retarded OS. +There is a possibility that, at some point, automake might segfault. The +reason is unsufficient stack size, and can be easily fixed with the +`ulimit` command (or an equivalent) available in most shells. For instance +on bash 2.0, the following command solves the automake crash on Mac OS X : +ulimit -s 20000 + The bootstrap sequence ---------------------- diff --git a/modules/access/http.c b/modules/access/http.c index 4688674763..a4f07e6b00 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -2,7 +2,7 @@ * http.c: HTTP access plug-in ***************************************************************************** * Copyright (C) 2001, 2002 VideoLAN - * $Id: http.c,v 1.4 2002/09/30 11:05:34 sam Exp $ + * $Id: http.c,v 1.5 2002/10/07 21:58:40 massiot Exp $ * * Authors: Christophe Massiot * @@ -118,10 +118,9 @@ static int HTTPConnect( input_thread_t * p_input, off_t i_tell ) { snprintf( psz_buffer, sizeof(psz_buffer), "%s" - "Range: bytes=%d%d-\r\n" + "Range: bytes=%lld-\r\n" HTTP_USERAGENT HTTP_END, - p_access_data->psz_buffer, - (u32)(i_tell>>32), (u32)i_tell ); + p_access_data->psz_buffer, i_tell ); } else { -- 2.39.2