|
@@ -843,7 +843,8 @@ void ldom_reboot(const char *boot_command)
|
|
|
unsigned long len;
|
|
|
|
|
|
strcpy(full_boot_str, "boot ");
|
|
|
- strcpy(full_boot_str + strlen("boot "), boot_command);
|
|
|
+ strlcpy(full_boot_str + strlen("boot "), boot_command,
|
|
|
+ sizeof(full_boot_str + strlen("boot ")));
|
|
|
len = strlen(full_boot_str);
|
|
|
|
|
|
if (reboot_data_supported) {
|