The current version 1.02 add's some random 0 bytes on
the end of a decrypted file. Here is a short patch to
correct this behaviour:
diff -r sectar-1.02/sectar/crypt.c sectar-1.02-
patched/sectar/crypt.c
43c43
<
---
> int iTmp;
89c89
< while(fread(inbuff, 1, nb/8, fin)){
---
> while(iTmp=fread(inbuff, 1, nb/8, fin)){
94c94
< fwrite(outbuff, 1, nb/8, fout);
---
> fwrite(outbuff, 1, iTmp, fout);
112c112
<
---
> int iTmp;
147c147
< while(fread(inbuff, 1, nb/8, fin)){
---
> while(iTmp=fread(inbuff, 1, nb/8, fin)){
155c155,156
< fwrite(outbuff, 1, nb/8, fout);
---
> fwrite(outbuff, 1, iTmp, fout);
> memset(inbuff,0,sizeof(inbuff));
Logged In: YES
user_id=250930
I was a little bit too soon on submitting my patch :-)
If there are any questions about this patch, you can always
contact me
BC547