X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.c;h=580a55d768cb1d3fbf4ced3c1922d8c90c6c36a3;hb=740d0ef26c9be6147611276fd48cd835282b8b49;hp=dbf0cd6e472ef59f64aa2c58854d2dfe5b434a38;hpb=586c8e8bd1b972e9de6702f846d28400c71c7522;p=swftools.git diff --git a/lib/rfxswf.c b/lib/rfxswf.c index dbf0cd6..580a55d 100644 --- a/lib/rfxswf.c +++ b/lib/rfxswf.c @@ -668,7 +668,7 @@ int swf_SetMatrix(TAG * t,MATRIX * m) return 0; } -int swf_GetCXForm(TAG * t,CXFORM * cx,U8 alpha) //FIXME: alpha should be type bool +int swf_GetCXForm(TAG * t,CXFORM * cx,U8 alpha) { CXFORM cxf; int hasadd; int hasmul; @@ -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); @@ -1436,6 +1437,7 @@ int swf_WriteSWF(int handle, SWF * swf) // Writes SWF to file, returns leng if(handle<0) { writer_init_nullwriter(&writer); len = swf_WriteSWF2(&writer, swf); + return len; } writer_init_filewriter(&writer, handle); len = swf_WriteSWF2(&writer, swf);