From: David ‘Bombe’ Roden Date: Sat, 5 Jul 2008 20:59:16 +0000 (+0200) Subject: don't use buffer parameter X-Git-Tag: 0.1~17 X-Git-Url: https://git.pterodactylus.net/?p=ecparse.git;a=commitdiff_plain;h=7d81ee538a916992c842025f25673e1891cd1986 don't use buffer parameter add logging --- 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; }