X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=19504879741195c56bc87d585f90834895f64b15;hb=d6f4d2c57774930556d4dd226139cd99df23dffd;hp=4a409ac5424b8d8ed3cbd77ce28cb3e92e794ede;hpb=ff1365c9402d6384c6b21adf8fef24e8d9b8d593;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index 4a409ac..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); @@ -1496,10 +1497,11 @@ int swf_WriteCGI(SWF * swf) SWF* swf_CopySWF(SWF*swf) { SWF*nswf = rfx_alloc(sizeof(SWF)); + TAG*tag, *ntag; memcpy(nswf, swf, sizeof(SWF)); nswf->firstTag = 0; - TAG*tag = swf->firstTag; - TAG*ntag = 0; + tag = swf->firstTag; + ntag = 0; while(tag) { ntag = swf_CopyTag(ntag, tag); if(!nswf->firstTag)