mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-22 10:29:31 +00:00
clear command line buffer before filling it with the property
This commit is contained in:
parent
58efcb5f44
commit
e68b0482e8
@ -184,7 +184,8 @@ int read_config(emile_l2_header_t* info,
|
||||
*command_line = (char*)malloc(COMMAND_LINE_LENGTH);
|
||||
if (*command_line == NULL)
|
||||
return -1;
|
||||
strncpy(*command_line, property, COMMAND_LINE_LENGTH);
|
||||
memset(*command_line, 0, COMMAND_LINE_LENGTH);
|
||||
strncpy(*command_line, property, COMMAND_LINE_LENGTH - 1);
|
||||
}
|
||||
|
||||
if (get_property(info->configuration, "initrd", property) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user