]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: rivafb: Use strscpy() to copy device name
authorDavid Laight <david.laight.linux@gmail.com>
Sat, 6 Jun 2026 20:26:19 +0000 (21:26 +0100)
committerHelge Deller <deller@gmx.de>
Tue, 9 Jun 2026 14:00:11 +0000 (16:00 +0200)
Signed-off-by: David Laight <david.laight.linux@gmail.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/riva/rivafb-i2c.c

index 6a183375ced1a01d637d560b852a2aa6be309fba..5ee59be01850b389a2eceef3377512f1f748bc40 100644 (file)
@@ -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;