X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=cfe_generate_password.git;a=blobdiff_plain;f=cfe_generate_password.c;h=7c5fb052e566c98b88a0f65615828d98f3612146;hp=2e21b458d0b5c3125f2314ac66e4748694b3c3d6;hb=refs%2Ftags%2Fv1.2;hpb=8ab17a74059179e14b2960a79f284f49b4a0a940 diff --git a/cfe_generate_password.c b/cfe_generate_password.c index 2e21b45..7c5fb05 100644 --- a/cfe_generate_password.c +++ b/cfe_generate_password.c @@ -60,7 +60,7 @@ #include #include -static const float VERSION = 1.1f; +static const float VERSION = 1.2f; static const size_t TIMESTAMP_SIZE = 6; static const size_t SEED_SIZE = 12; static const size_t PASSWORD_SIZE = 8; @@ -131,7 +131,7 @@ generate_seed(char *mac, char *timestamp, char *seed) } result = 1; } else - pr_error_exit(0, "MAC-ADDR should be 17 characters, e.g: 00:01:02:03:04:05"); + pr_error_exit(0, "MAC-ADDR should be %d characters, e.g: 00:01:02:03:04:05", MAC_ADDR_SIZE); return result; }