Skip to content

Commit

Permalink
tweak to suppress a warning from gcc/g++ 9.3
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.code.sf.net/p/smartmontools/code/trunk@5470 4ea69e1a-61f1-4043-bf83-b5c94c648137
  • Loading branch information
dpgilbert committed Mar 21, 2023
1 parent fa3ba19 commit 292ef30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions smartmontools/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
$Id$

2023-03-21 Douglas Gilbert <dgilbert@interlog.com>

tweak to suppress a warning from gcc/g++ 9.3

2023-03-15 Douglas Gilbert <dgilbert@interlog.com>

expand functionality of json::str2key() . It's job is to convert
Expand Down
2 changes: 1 addition & 1 deletion smartmontools/scsicmds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ dStrHexHelper(const uint8_t * up, int len, int no_ascii,
int cpos = cpstart;
int bpos = bpstart;
int i, k, blen;
char e[line_len + 2];
char e[line_len + 4];
static const int elen = sizeof(e);

if (len <= 0)
Expand Down

0 comments on commit 292ef30

Please sign in to comment.