Skip to content
Snippets Groups Projects
Commit d5831e07 authored by benbergk's avatar benbergk
Browse files

fixed bug in SR_factory

parent 0cab7f22
Branches
No related tags found
1 merge request!2WIP:Crawler parser 2 merge into duplicate url-crawler
......@@ -21,7 +21,7 @@ StreamReader *SR_factory ( ParsedUrl url, string mode )
StreamReader *newReader = nullptr;
if ( mode == "local" )
{
newReader = new LocalReader( url.CompleteUrl );
newReader = new LocalReader( string(url.CompleteUrl, strlen(url.CompleteUrl) ) );
}
else if ( mode == "web" )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment