Fixed compiler warnings
This commit is contained in:
@ -37,7 +37,7 @@ typedef struct _uri_parts {
|
||||
char pass[16];
|
||||
char host[256];
|
||||
char port[16];
|
||||
char path[1204];
|
||||
char path[1024];
|
||||
int rate;
|
||||
} uri_parts;
|
||||
|
||||
|
||||
@ -154,7 +154,7 @@ int uri_parse( const char *uri, uri_parts *parsed )
|
||||
strncpy( parsed->port, port, sizeof(parsed->port) );
|
||||
}
|
||||
if ( path )
|
||||
strncat( parsed->path, path, sizeof(parsed->path) );
|
||||
strncat( parsed->path, path, sizeof(parsed->path)-1 );
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user