1
0
Fork 0

Use the correct delimiter for the file format.

ycs232-kbc
Jonathan Naylor 8 years ago
parent f8b0accafb
commit 04519a58c7

@ -60,12 +60,12 @@ 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* p4 = ::strtok(NULL, " \t\r\n");
char* p5 = ::strtok(NULL, " \t\r\n");
char* p6 = ::strtok(NULL, " \t\r\n");
char* p1 = ::strtok(buffer, ";\r\n");
char* p2 = ::strtok(NULL, ";\r\n");
char* p3 = ::strtok(NULL, ";\r\n");
char* p4 = ::strtok(NULL, ";\r\n");
char* p5 = ::strtok(NULL, ";\r\n");
char* p6 = ::strtok(NULL, "\r\n");
if (p1 != NULL && p2 != NULL && p3 != NULL && p4 != NULL && p5 != NULL && p6 != NULL) {
std::string host = std::string(p4);

Loading…
Cancel
Save