ref: b98b4e6be6ec33ddeb27cf0a919b2a0b8664a0d9
parent: bfb2dd3faafead71d389213eed781447aa55d071
author: Simon Howard <[email protected]>
date: Sat Oct 27 22:35:45 EDT 2018
misc: Fix bug with M_StringStartsWith(). A full string match still counts as "starting with". This fixes a bug with substitute MIDI packs where substitutions were not being loaded when the full hash was specified.
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -535,7 +535,7 @@
boolean M_StringStartsWith(const char *s, const char *prefix)
{
- return strlen(s) > strlen(prefix)
+ return strlen(s) >= strlen(prefix)
&& strncmp(s, prefix, strlen(prefix)) == 0;
}