diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2012-01-13 15:09:47 -0800 |
---|---|---|
committer | Vincent Palatin <vpalatin@chromium.org> | 2012-01-13 18:32:40 -0800 |
commit | bfe30f3544585848cda1983f9fe3f9809bf409ed (patch) | |
tree | bbd05b51dcbf2c480d8f83fe96a721864b2d9e21 /common/stdio.c | |
parent | c98691ab0e592a4806607192d12a45a9af69d5a0 (diff) |
stdio: remove useless strncpy
The name is already copied when we memcopy the whole structure.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
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 <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-by: Stefan Reinauer <reinauer@chromium.org>
Diffstat (limited to 'common/stdio.c')
-rw-r--r-- | common/stdio.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |