i2c: strncpy does not null terminate string
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 17 Jul 2009 13:24:00 +0000 (15:24 +0200)
committerBen Dooks <ben-linux@fluff.org>
Wed, 29 Jul 2009 23:55:50 +0000 (00:55 +0100)
commit783fd6fa4c144e3f6913e6fed89de10a6dd715a5
tree2702ace497e3361b0cbcf228896d9c73e21a2d08
parent0e014e92ba93d905bcb39881dce2d38807b90c34
i2c: strncpy does not null terminate string

strlcpy() will always null terminate the string.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c