Skip to content

Commit

Permalink
drivers/usbhid-ups.c: date_conversion_fun(): hush a string overflow w…
Browse files Browse the repository at this point in the history
…arning (overkill the buffer size a bit)
  • Loading branch information
jimklimov committed Dec 21, 2021
1 parent 7d7d3fa commit fbec9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usbhid-ups.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ info_lkp_t on_off_info[] = {
done with result! */
static const char *date_conversion_fun(double value)
{
static char buf[20];
static char buf[32];
long year, month, day;

if ((long)value == 0) {
Expand Down

0 comments on commit fbec9e5

Please sign in to comment.