* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.33 2003/04/30 04:13:12 hartman Exp $
+ * $Id: http.c,v 1.35 2003/05/15 22:27:36 massiot Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
/*****************************************************************************
* Module descriptor
*****************************************************************************/
-#define PROXY_TEXT N_("specify an HTTP proxy")
+#define PROXY_TEXT N_("Specify an HTTP proxy")
#define PROXY_LONGTEXT N_( \
"Specify an HTTP proxy to use. It must be in the form " \
"http://myproxy.mydomain:myport. If none is specified, the HTTP_PROXY " \
"environment variable will be tried." )
-#define CACHING_TEXT N_("caching value in ms")
+#define CACHING_TEXT N_("Caching value in ms")
#define CACHING_LONGTEXT N_( \
"Allows you to modify the default caching value for http streams. This " \
"value should be set in miliseconds units." )
i_size = i_tell + atoll( psz_value );
#else
int sign = 1;
- psz_parser = psz_value;
-
- while( *psz_value == ' ' || *psz_value == '\t' )
- psz_value++;
-
- if( *psz_value == '-' )
- sign = -1;
- while( *psz_value != '\0')
+
+ if( *psz_value == '-' ) sign = -1;
+ while( *psz_value >= '0' && *psz_value <= '9' )
{
- if( *psz_value >= '0' && *psz_value <= '9' )
- i_size = i_size * 10 + *psz_value++ - '0';
- else
- psz_value++;
+ i_size = i_size * 10 + *psz_value++ - '0';
}
i_size = i_tell + ( i_size * sign );
#endif