forked from pool/tboot
17 lines
795 B
Diff
17 lines
795 B
Diff
|
Index: tboot-1.7.2/tb_polgen/param.c
|
||
|
===================================================================
|
||
|
--- tboot-1.7.2.orig/tb_polgen/param.c
|
||
|
+++ tboot-1.7.2/tb_polgen/param.c
|
||
|
@@ -409,9 +409,9 @@ bool parse_input_params(int argc, char *
|
||
|
return false;
|
||
|
}
|
||
|
if (strlen(optarg) > sizeof(params->cmdline) - 1) {
|
||
|
- error_msg("Command line length of %lu exceeds %d "
|
||
|
+ error_msg("Command line length of %u exceeds %d "
|
||
|
"character maximum\n",
|
||
|
- strlen(optarg), TBOOT_KERNEL_CMDLINE_SIZE-1);
|
||
|
+ (int)strlen(optarg), TBOOT_KERNEL_CMDLINE_SIZE-1);
|
||
|
return false;
|
||
|
}
|
||
|
|