Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tp_smapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ static ssize_t show_tp_ec_bat_str(u8 arg0, int offset, int maxlen,
ret = read_tp_ec_row(arg0, bat, 0, row);
if (ret)
return ret;
strncpy(buf, (char *)row+offset, maxlen);
strscpy(buf, (char *)row+offset, maxlen);
buf[maxlen] = 0;
strcat(buf, "\n");
return strlen(buf);
Expand Down
Loading