mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2024-11-24 21:28:38 -05:00
Allow spaces as delimiters in P25Hosts.txt
This commit is contained in:
parent
5b40a2dcf5
commit
f71d1d53a9
@ -66,9 +66,9 @@ bool CReflectors::load()
|
|||||||
if (buffer[0U] == '#')
|
if (buffer[0U] == '#')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
char* p1 = ::strtok(buffer, "\t\r\n");
|
char* p1 = ::strtok(buffer, " \t\r\n");
|
||||||
char* p2 = ::strtok(NULL, "\t\r\n");
|
char* p2 = ::strtok(NULL, " \t\r\n");
|
||||||
char* p3 = ::strtok(NULL, "\t\r\n");
|
char* p3 = ::strtok(NULL, " \t\r\n");
|
||||||
|
|
||||||
if (p1 != NULL && p2 != NULL && p3 != NULL) {
|
if (p1 != NULL && p2 != NULL && p3 != NULL) {
|
||||||
std::string host = std::string(p2);
|
std::string host = std::string(p2);
|
||||||
|
Loading…
Reference in New Issue
Block a user