i2c-stu300: make sure adapter-name is terminated
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 31 Jan 2011 14:09:23 +0000 (15:09 +0100)
committerBen Dooks <ben-linux@fluff.org>
Tue, 22 Feb 2011 23:53:44 +0000 (23:53 +0000)
commitf10820e49585f281706ac07570a9e1652bdb5dd9
treee6e70cc53c680a2b92e40ced535fcf450de8d744
parentd8204a37baf5474d3154eb536c936369be2bd5c0
i2c-stu300: make sure adapter-name is terminated

Use strlcpy instead of strncpy.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Cc: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-stu300.c