|
@@ -388,7 +388,7 @@ static ssize_t synth_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|
|
len = strlen(buf);
|
|
|
if (len < 2 || len > 9)
|
|
|
return -EINVAL;
|
|
|
- strncpy(new_synth_name, buf, len);
|
|
|
+ memcpy(new_synth_name, buf, len);
|
|
|
if (new_synth_name[len - 1] == '\n')
|
|
|
len--;
|
|
|
new_synth_name[len] = '\0';
|
|
@@ -519,7 +519,7 @@ static ssize_t punc_store(struct kobject *kobj, struct kobj_attribute *attr,
|
|
|
return -EINVAL;
|
|
|
}
|
|
|
|
|
|
- strncpy(punc_buf, buf, x);
|
|
|
+ memcpy(punc_buf, buf, x);
|
|
|
|
|
|
while (x && punc_buf[x - 1] == '\n')
|
|
|
x--;
|