mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
fbdev: rivafb: Use strscpy() to copy device name
Signed-off-by: David Laight <david.laight.linux@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
81741fa5ac
commit
d1338aa2d6
|
|
@ -91,7 +91,7 @@ static int riva_setup_i2c_bus(struct riva_i2c_chan *chan, const char *name,
|
|||
{
|
||||
int rc;
|
||||
|
||||
strcpy(chan->adapter.name, name);
|
||||
strscpy(chan->adapter.name, name);
|
||||
chan->adapter.owner = THIS_MODULE;
|
||||
chan->adapter.class = i2c_class;
|
||||
chan->adapter.algo_data = &chan->algo;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user