From bfe30f3544585848cda1983f9fe3f9809bf409ed Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Fri, 13 Jan 2012 15:09:47 -0800 Subject: stdio: remove useless strncpy The name is already copied when we memcopy the whole structure. Signed-off-by: Vincent Palatin BUG=chrome-os-partner:7188 chrome-os-partner:7430 chrome-os-partner:7432 chrome-os-partner:7559 TEST=On lumpy with usb keyboard configured, run in recovery mode, insert a bad key, press tab, remove the key, press tab. The recovery info are displayed properly. Change-Id: Id719858901544403de9f7b8defd5df661510d48e Reviewed-on: https://gerrit.chromium.org/gerrit/14186 Commit-Ready: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Patrick Georgi Reviewed-by: Stefan Reinauer --- common/stdio.c | 1 - 1 file changed, 1 deletion(-) (limited to 'common/stdio.c') diff --git a/common/stdio.c b/common/stdio.c index 8b31a7d1f8c..1cac459dcae 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -135,7 +135,6 @@ struct stdio_dev* stdio_clone(struct stdio_dev *dev) return NULL; memcpy(_dev, dev, sizeof(struct stdio_dev)); - strncpy(_dev->name, dev->name, 16); return _dev; } -- cgit v1.2.3