Changeset 5052
- Timestamp:
- Feb 18, 2008, 5:06:52 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/metainfo.c
r5041 r5052 24 24 25 25 #include <assert.h> 26 #include <ctype.h> /* isspace */ 26 27 #include <errno.h> 27 28 #include <stdio.h> … … 39 40 #include "metainfo.h" 40 41 #include "platform.h" 42 #include "trcompat.h" /* strlcpy */ 41 43 #include "utils.h" 42 44 … … 495 497 if( !inf->trackerTiers ) 496 498 { 497 498 if( tr_httpParseUrl( val->val.s.s, val->val.s.i, 499 &address, &port, &announce ) ) 499 char buf[4096], *pch; 500 strlcpy( buf, val->val.s.s, sizeof( buf ) ); 501 pch = buf; 502 while( isspace( *pch ) ) 503 ++pch; 504 505 if( tr_httpParseUrl( pch, -1, &address, &port, &announce ) ) 500 506 { 501 507 tr_err( "Invalid announce URL (%s)", val->val.s.s );
Note: See TracChangeset
for help on using the changeset viewer.