From e02ed16f90275208dd89706b9bcb7c0ab4b875f3 Mon Sep 17 00:00:00 2001 From: Chen Gang Date: Sun, 20 Jan 2013 17:36:02 +0800 Subject: [PATCH] --- yaml --- r: 354822 b: refs/heads/master c: f8a2b220afef7699f7a90d97dbc2d8830979874e h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/tty/serial/8250/8250_early.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6bae7058af94..67fd4d7b421e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4f73bc4dd3e8563ef4109f293a092820dff66d92 +refs/heads/master: f8a2b220afef7699f7a90d97dbc2d8830979874e diff --git a/trunk/drivers/tty/serial/8250/8250_early.c b/trunk/drivers/tty/serial/8250/8250_early.c index f53a7db4350d..721904f8efa9 100644 --- a/trunk/drivers/tty/serial/8250/8250_early.c +++ b/trunk/drivers/tty/serial/8250/8250_early.c @@ -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",