From 20e92e5d35310a44c94f18a11b83effdb3de78f2 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 27 Apr 2018 12:31:37 -0700 Subject: [PATCH] fixed id.dat filename bug --- QnetLink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QnetLink.cpp b/QnetLink.cpp index 24a3f1b..b80f718 100644 --- a/QnetLink.cpp +++ b/QnetLink.cpp @@ -3869,7 +3869,7 @@ static void AudioNotifyThread(char *arg) memset(temp_file, '\0', sizeof(temp_file)); if (0 == memcmp(notify_msg + 2, "id.dat", 6)) { // check for id.dat - snprintf(temp_file, FILENAME_MAX, "%s/%c%s", announce_dir.c_str(), mod, notify_msg + 1); + snprintf(temp_file, FILENAME_MAX, "%s/%c%s", announce_dir.c_str(), mod, notify_msg + 2); struct stat ssbuf; if (stat(temp_file, &ssbuf)) // nope, no id.dat file, revert back to id.dat