From: kramm Date: Sat, 5 Feb 2005 19:41:55 +0000 (+0000) Subject: fixed swf_SetPassword() bug. X-Git-Tag: release-0-6-3~11 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=7bc762a4b12a9bd7a039d4c5ecb7419c063f51a5;hp=419089c30d9ee015ee1a7949dbc87c1380cdb240 fixed swf_SetPassword() bug. --- diff --git a/lib/rfxswf.c b/lib/rfxswf.c index dbf0cd6..1950487 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -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);