--- protosupport.cpp 2004-06-16 23:50:21.000000000 +0200 +++ protosupport.cpp 2004-07-01 15:13:47.588216176 +0200 @@ -19,7 +19,7 @@ { #include "blowfish.h" #include "md5.h" - }; + } #include "protosupport.h" void GenerKey(unsigned char *pDest,unsigned char *pSorg){ @@ -74,8 +74,12 @@ int i=1; dest[0]=source[0]; + while (i < 8) - dest[i] = source[(i++*step) % 7]; + { + dest[i]=source[(i*step) % 7]; + i++; + } } void BlowFishEncode(int len,BYTE *source,int len_key,BYTE* init)