summaryrefslogtreecommitdiff
path: root/sound/aoa/soundbus/sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/aoa/soundbus/sysfs.c')
-rw-r--r--sound/aoa/soundbus/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/aoa/soundbus/sysfs.c b/sound/aoa/soundbus/sysfs.c
index a2d55e15afbb..dead3105689b 100644
--- a/sound/aoa/soundbus/sysfs.c
+++ b/sound/aoa/soundbus/sysfs.c
@@ -13,7 +13,7 @@ static ssize_t modalias_show(struct device *dev, struct device_attribute *attr,
int length;
if (*sdev->modalias) {
- strlcpy(buf, sdev->modalias, sizeof(sdev->modalias) + 1);
+ strscpy(buf, sdev->modalias, sizeof(sdev->modalias) + 1);
strcat(buf, "\n");
length = strlen(buf);
} else {