don't use buffer parameter
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:59:16 +0000 (22:59 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 5 Jul 2008 20:59:16 +0000 (22:59 +0200)
add logging

ED2KLink.cpp

index 7f1ec66..6ddcdc4 100644 (file)
@@ -56,9 +56,10 @@ ED2KLink* ED2KLink::parseED2KLink(const char* buffer) {
        char* pipeIndex;
        int stringLength;
 
        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;
        }
 
                return NULL;
        }