summaryrefslogtreecommitdiff
path: root/ftp/axel/files/patch-conn.c
blob: b5d73713eb4f7a618a43b1dd1c4d56ee4754d776 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$FreeBSD$

--- conn.c.orig
+++ conn.c
@@ -321,7 +321,7 @@
 				break;
 			if( ( t = http_header( conn->http, "location:" ) ) == NULL )
 				return( 0 );
-			sscanf( t, "%s", s );
+			sscanf( t, "%255s", s );
 			if( strstr( s, "://" ) == NULL)
 			{
 				sprintf( conn->http->headers, "%s%s",