aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/xen/xen_snd_front_cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/xen/xen_snd_front_cfg.c b/sound/xen/xen_snd_front_cfg.c
index 38c7e1eefbb9..684b5f1d51ac 100644
--- a/sound/xen/xen_snd_front_cfg.c
+++ b/sound/xen/xen_snd_front_cfg.c
@@ -396,7 +396,7 @@ static int cfg_device(struct xen_snd_front_info *front_info,
396 396
397 str = xenbus_read(XBT_NIL, device_path, XENSND_FIELD_DEVICE_NAME, NULL); 397 str = xenbus_read(XBT_NIL, device_path, XENSND_FIELD_DEVICE_NAME, NULL);
398 if (!IS_ERR(str)) { 398 if (!IS_ERR(str)) {
399 strncpy(pcm_instance->name, str, sizeof(pcm_instance->name)); 399 strlcpy(pcm_instance->name, str, sizeof(pcm_instance->name));
400 kfree(str); 400 kfree(str);
401 } 401 }
402 402