Loading drivers/soc/qcom/boot_stats.c +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ static ssize_t bootkpi_writer(struct kobject *obj, struct kobj_attribute *attr, if (count >= MAX_STRING_LEN) return -EINVAL; rc = scnprintf(buf, count, "%s", user_buffer); rc = scnprintf(buf, sizeof(buf) - 1, "%s", user_buffer); if (rc < 0) return rc; Loading Loading
drivers/soc/qcom/boot_stats.c +1 −1 Original line number Diff line number Diff line Loading @@ -189,7 +189,7 @@ static ssize_t bootkpi_writer(struct kobject *obj, struct kobj_attribute *attr, if (count >= MAX_STRING_LEN) return -EINVAL; rc = scnprintf(buf, count, "%s", user_buffer); rc = scnprintf(buf, sizeof(buf) - 1, "%s", user_buffer); if (rc < 0) return rc; Loading