diff --git a/pasta/pasta.cpp b/pasta/pasta.cpp index 3b4360b..c902616 100755 --- a/pasta/pasta.cpp +++ b/pasta/pasta.cpp @@ -60,7 +60,7 @@ BOOL GetValueFromReadme(const char* readmeContents, const char* valueName, BYTE* // TODO: probably a cleaner way to do this if (!foundValueEnd) { - foundValueEnd = foundValue + strlen(readmeContents); + foundValueEnd = strchr(foundValue, '\0'); } foundValueLength = (size_t)(foundValueEnd - foundValue);