mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Add const KERNELMQ_INFO_CMDLINE_SLEN_MAX
This commit is contained in:
parent
089c09f518
commit
651fa9cf9d
2 changed files with 3 additions and 2 deletions
|
@ -104,7 +104,7 @@ unsigned char print_multiboot_tag_cmdline(struct KernelMQ_Info *kinfo, const str
|
|||
{
|
||||
unsigned int slen = kstrlen(tag->string);
|
||||
|
||||
if (slen >= KERNELMQ_INFO_CMDLINE_SIZE_MAX) {
|
||||
if (slen > KERNELMQ_INFO_CMDLINE_SLEN_MAX) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -121,7 +121,7 @@ unsigned char print_multiboot_tag_module(struct KernelMQ_Info *kinfo, const stru
|
|||
|
||||
unsigned int cmdline_slen = kstrlen(tag->cmdline);
|
||||
|
||||
if (cmdline_slen >= KERNELMQ_INFO_CMDLINE_SIZE_MAX) {
|
||||
if (cmdline_slen > KERNELMQ_INFO_CMDLINE_SLEN_MAX) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#define KERNELMQ_INFO_CMDLINE_SIZE_MAX 256
|
||||
#define KERNELMQ_INFO_CMDLINE_SLEN_MAX (KERNELMQ_INFO_CMDLINE_SIZE_MAX - 1)
|
||||
|
||||
#define KERNELMQ_INFO_MODULES_MAX 20
|
||||
#define KERNELMQ_INFO_AREAS_MAX 20
|
||||
|
|
Loading…
Reference in a new issue