X-Git-Url: https://git.pterodactylus.net/?p=ecparse.git;a=blobdiff_plain;f=ED2KLink.cpp;fp=ED2KLink.cpp;h=6ddcdc4b38646269e9c9da27b439430c689ac07f;hp=7f1ec664b14dff9996de44a7644efaa9b9d9ac3b;hb=7d81ee538a916992c842025f25673e1891cd1986;hpb=80ddd7c4c2b1e9965df13b552538415d3caf8a83 diff --git a/ED2KLink.cpp b/ED2KLink.cpp index 7f1ec66..6ddcdc4 100644 --- a/ED2KLink.cpp +++ b/ED2KLink.cpp @@ -56,9 +56,10 @@ ED2KLink* ED2KLink::parseED2KLink(const char* buffer) { char* pipeIndex; int stringLength; - GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] trying to parse “%s”...\n", __FILE__, __LINE__, buffer); + GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] trying to parse “%s”...\n", __FILE__, __LINE__, tempBuffer); - if (strncmp("ed2k://|file|", buffer, 13)) { + if (strncmp("ed2k://|file|", tempBuffer, 13)) { + GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] line does not start with “ed2k://|file|”!\n", __FILE__, __LINE__); return NULL; }