From eb7d6c65617d1f04abf67113b4a5b195c08b630d Mon Sep 17 00:00:00 2001 From: disconnect3d Date: Fri, 1 May 2020 13:22:55 +0200 Subject: [PATCH] Fix off by ones when parsing XML comments This commit fixes off by ones when parsing XML comments. The `strncmp` calls before this commit: strncmp(cursor, ""); if (!cursor) break; diff --git a/client/third_party/google_gadgets_for_linux/ggadget/win32/xml_parser.cc b/client/third_party/google_gadgets_for_linux/ggadget/win32/xml_parser.cc index 675d625..3aef242 100644 --- a/client/third_party/google_gadgets_for_linux/ggadget/win32/xml_parser.cc +++ b/client/third_party/google_gadgets_for_linux/ggadget/win32/xml_parser.cc @@ -447,7 +447,7 @@ std::string GetHTMLCharset(const char* html_content) { if (!cursor) break; - if (strncmp(cursor, ""); if (!cursor) break;