|
@@ -194,7 +194,7 @@ static int __init parse_options(struct early_serial8250_device *device,
|
|
|
options++;
|
|
|
device->baud = simple_strtoul(options, NULL, 0);
|
|
|
length = min(strcspn(options, " "), sizeof(device->options));
|
|
|
- strncpy(device->options, options, length);
|
|
|
+ strlcpy(device->options, options, length);
|
|
|
} else {
|
|
|
device->baud = probe_baud(port);
|
|
|
snprintf(device->options, sizeof(device->options), "%u",
|