firmware-utils mktplinkfw: print amount of exceeding bytes
[openwrt/staging/mkresin.git] / tools / firmware-utils / src / buffalo-enc.c
index 13d270b3f73598fa7d520318e6cb480f128f32ac..59b66ab930cc22ac42ccbe8709e46b850d760c10 100644 (file)
@@ -85,6 +85,7 @@ static int decrypt_file(void)
 
        memset(&ep, '\0', sizeof(ep));
        ep.key = (unsigned char *) crypt_key;
+       ep.longstate = longstate;
 
        err = decrypt_buf(&ep, buf, src_len);
        if (err) {
@@ -238,7 +239,7 @@ int main(int argc, char *argv[])
        while ( 1 ) {
                int c;
 
-               c = getopt(argc, argv, "adi:m:o:hp:v:k:r:s:");
+               c = getopt(argc, argv, "adi:m:o:hlp:v:k:r:s:");
                if (c == -1)
                        break;