X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=mdfour.c;h=c550651ec37b8eba38d1f747631e2ba425baef5f;hb=682c13beba95014c89c25f8ebec398a32a831d83;hp=cd0ce05a65c4ebdf16bf1a74396187af9b199a2a;hpb=9e279d8ea4a631713d98132cd1b01338e81f5c0b;p=xonotic%2Fdarkplaces.git diff --git a/mdfour.c b/mdfour.c index cd0ce05a..c550651e 100644 --- a/mdfour.c +++ b/mdfour.c @@ -27,6 +27,8 @@ $Id$ */ +#include "quakedef.h" + #include /* 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;