X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=ED2KLink.cpp;h=7f1ec664b14dff9996de44a7644efaa9b9d9ac3b;hb=80ddd7c4c2b1e9965df13b552538415d3caf8a83;hp=f8e7373dc6d9a728b41363b73048420cb6500519;hpb=e7c26721f55730f25f7be2ab297e65d4e8598872;p=ecparse.git diff --git a/ED2KLink.cpp b/ED2KLink.cpp index f8e7373..7f1ec66 100644 --- a/ED2KLink.cpp +++ b/ED2KLink.cpp @@ -71,7 +71,7 @@ ED2KLink* ED2KLink::parseED2KLink(const char* buffer) { stringLength = (char*) pipeIndex - tempBuffer; filename = (char*) malloc(stringLength + 1); memcpy(filename, tempBuffer, stringLength); - sizeString[stringLength] = '\0'; + filename[stringLength] = '\0'; tempBuffer = pipeIndex + 1; GlobalSettings::isVerbose() && fprintf(stderr, "[%s:%d] parsed filename: “%s”.\n", __FILE__, __LINE__, filename);