fixed swf_SetPassword() bug.
authorkramm <kramm>
Sat, 5 Feb 2005 19:41:55 +0000 (19:41 +0000)
committerkramm <kramm>
Sat, 5 Feb 2005 19:41:55 +0000 (19:41 +0000)
lib/rfxswf.c

index dbf0cd6..1950487 100644 (file)
@@ -782,6 +782,7 @@ void  swf_SetPassword(TAG * t, const char * password)
     fprintf(stderr, "rfxswf: Warning- no usable random generator found\n");
     fprintf(stderr, "Your password will be vulnerable to dictionary attacks\n");
 #endif
+    salt[2] = 0;
     
     md5string = crypt_md5(password, salt);