]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mdfour.c
add bih.[ch] to MSVC projects
[xonotic/darkplaces.git] / mdfour.c
index cd0ce05a65c4ebdf16bf1a74396187af9b199a2a..c550651ec37b8eba38d1f747631e2ba425baef5f 100644 (file)
--- a/mdfour.c
+++ b/mdfour.c
@@ -27,6 +27,8 @@
        $Id$
 */
 
+#include "quakedef.h"
+
 #include <string.h>            /* XoXus: needed for memset call */
 #include "mdfour.h"
 
@@ -162,7 +164,10 @@ void mdfour_update(struct mdfour *md, unsigned char *in, int n)
 {
        uint32 M[16];
 
-       if (n == 0) mdfour_tail(in, n);
+// start of edit by Forest 'LordHavoc' Hale
+// commented out to prevent crashing when length is 0
+//     if (n == 0) mdfour_tail(in, n);
+// end of edit by Forest 'LordHavoc' Hale
 
        m = md;