X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8d94819c437fdf28c45e9f328e6c38fd1c639ddf..6f3f38980f10a935f3b47dbf0d3b4643e96a4be2:/src/common/convauto.cpp diff --git a/src/common/convauto.cpp b/src/common/convauto.cpp index 8d8c24c0a3..756e81c233 100644 --- a/src/common/convauto.cpp +++ b/src/common/convauto.cpp @@ -229,7 +229,7 @@ void wxConvAuto::SkipBOM(const char **src, size_t *len) const bool wxConvAuto::InitFromInput(const char *src, size_t len) { - m_bomType = DetectBOM(src, len); + m_bomType = DetectBOM(src, len == wxNO_LEN ? strlen(src) : len); if ( m_bomType == BOM_Unknown ) return false;