]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - mdfour.c
Fix a bug with r_batch_debugdynamicvertexpath in R_DrawTextureSurfaceList_Sky where...
[xonotic/darkplaces.git] / mdfour.c
index 85f6c9e85042505ebc4062341b759472a09bb4c0..f647df2983a00d49b2525b86e4b02a48e82aa133 100644 (file)
--- a/mdfour.c
+++ b/mdfour.c
@@ -148,13 +148,13 @@ static void mdfour_tail(struct mdfour *md, const unsigned char *in, int n)
        if (n <= 55) {
                copy4(buf+56, b);
                copy64(M, buf);
-               mdfour64(M);
+               mdfour64(md, M);
        } else {
                copy4(buf+120, b);
                copy64(M, buf);
-               mdfour64(M);
+               mdfour64(md, M);
                copy64(M, buf+64);
-               mdfour64(M);
+               mdfour64(md, M);
        }
 }
 
@@ -162,10 +162,10 @@ void mdfour_update(struct mdfour *md, const unsigned char *in, int n)
 {
        uint32 M[16];
 
-// start of edit by Forest 'LordHavoc' Hale
+// start of edit by Ashley Rose Hale (LadyHavoc)
 // commented out to prevent crashing when length is 0
 //     if (n == 0) mdfour_tail(in, n);
-// end of edit by Forest 'LordHavoc' Hale
+// end of edit by Ashley Rose Hale (LadyHavoc)
 
        while (n >= 64) {
                copy64(M, in);