Skip to content

Commit

Permalink
Fixed spaces in paths
Browse files Browse the repository at this point in the history
When there were spaces in the path leading to aardvark the server would fail to start.
  • Loading branch information
JoeLudwig committed Aug 26, 2020
1 parent ad3798a commit d22110d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/avrenderer/avserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ bool StartServer( HINSTANCE hInstance )
return true; // not an error to obey the command line

// start the server
std::vector<std::string> vecServerArgs = { getNodeExePath().u8string(), getServerJsPath().u8string() };
std::vector<std::string> vecServerArgs =
{
getNodeExePath().u8string(),
"\"" + getServerJsPath().u8string() + "\""
};

std::function< void( const char *, size_t )> fnToUse;
if ( !bShowConsole )
Expand All @@ -64,8 +68,8 @@ bool StartServer( HINSTANCE hInstance )
if ( n == 0 )
return;

//std::string sMessage( bytes, n - 1 );
//LOG( INFO ) << "Server: " << sMessage;
std::string sMessage( bytes, n - 1 );
LOG( INFO ) << "Server: " << sMessage;
};
}

Expand Down

0 comments on commit d22110d

Please sign in to comment.