Allow spaces as delimiters in P25Hosts.txt

This commit is contained in:
Jonathan Naylor 2016-10-17 23:52:12 +01:00
parent 5b40a2dcf5
commit f71d1d53a9
1 changed files with 3 additions and 3 deletions

View File

@ -66,9 +66,9 @@ bool CReflectors::load()
if (buffer[0U] == '#')
continue;
char* p1 = ::strtok(buffer, "\t\r\n");
char* p2 = ::strtok(NULL, "\t\r\n");
char* p3 = ::strtok(NULL, "\t\r\n");
char* p1 = ::strtok(buffer, " \t\r\n");
char* p2 = ::strtok(NULL, " \t\r\n");
char* p3 = ::strtok(NULL, " \t\r\n");
if (p1 != NULL && p2 != NULL && p3 != NULL) {
std::string host = std::string(p2);