diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-09-10 16:14:15 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-11-22 13:32:47 -0500 |
commit | 2396e2821b0f42ab5048d015298d4858a0eefa32 (patch) | |
tree | 6b06dba7e32beb2260c5d0cf12f9e9540bf5bb28 | |
parent | e5bb9d3d755f128956ed467ae50b41d22bb680c6 (diff) |
media: rc: imon: replace strcpy() by strscpy()
The strcpy() function is being deprecated. Replace it by the
safer strscpy().
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r-- | drivers/media/rc/imon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c index 1041c056854d..989d2554ec72 100644 --- a/drivers/media/rc/imon.c +++ b/drivers/media/rc/imon.c | |||
@@ -772,9 +772,9 @@ static ssize_t show_associate_remote(struct device *d, | |||
772 | 772 | ||
773 | mutex_lock(&ictx->lock); | 773 | mutex_lock(&ictx->lock); |
774 | if (ictx->rf_isassociating) | 774 | if (ictx->rf_isassociating) |
775 | strcpy(buf, "associating\n"); | 775 | strscpy(buf, "associating\n", PAGE_SIZE); |
776 | else | 776 | else |
777 | strcpy(buf, "closed\n"); | 777 | strscpy(buf, "closed\n", PAGE_SIZE); |
778 | 778 | ||
779 | dev_info(d, "Visit http://www.lirc.org/html/imon-24g.html for instructions on how to associate your iMON 2.4G DT/LT remote\n"); | 779 | dev_info(d, "Visit http://www.lirc.org/html/imon-24g.html for instructions on how to associate your iMON 2.4G DT/LT remote\n"); |
780 | mutex_unlock(&ictx->lock); | 780 | mutex_unlock(&ictx->lock); |