From 04519a58c740986997d0fbf2ee62bbb3443bd1b2 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Thu, 29 Sep 2016 20:11:10 +0100 Subject: [PATCH] Use the correct delimiter for the file format. --- YSFGateway/Reflectors.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/YSFGateway/Reflectors.cpp b/YSFGateway/Reflectors.cpp index f32a274..eccdf74 100644 --- a/YSFGateway/Reflectors.cpp +++ b/YSFGateway/Reflectors.cpp @@ -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);