Fix code bug

This commit is contained in:
Jostar Yang 2021-11-05 10:00:13 +08:00
parent 69b20ac14e
commit 2786c8a8ae

View File

@ -309,7 +309,7 @@ static struct as4630_54te_psu_data *as4630_54te_psu_update_device(struct device
printk("unable to read model name from (0x%x) offset(0x2e)\n", client->addr);
}
data->serial_number[MAX_SERIAL_NUMBER]='\0';
data->serial_number[MAX_SERIAL_NUMBER-1]='\0';
}