diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 08:52:03 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-04-09 10:46:15 +0200 |
commit | a2f66229450dc2f7647c19ac83f3948e809406c2 (patch) | |
tree | 42bc9bf9b41e79c6c46765eacf2cfbfa300c80d6 /tools/firmware-utils/src/dgn3500sum.c | |
parent | 7c01e2bac1c2df1e10658b81e903fbd687c1a56b (diff) | |
download | upstream-a2f66229450dc2f7647c19ac83f3948e809406c2.tar.gz upstream-a2f66229450dc2f7647c19ac83f3948e809406c2.tar.bz2 upstream-a2f66229450dc2f7647c19ac83f3948e809406c2.zip |
firmware-utils: fix few random warnings
1. -Wunused-label
2. -Wparentheses
3. -Wmisleading-indentation
4. -Wformat-overflow
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/dgn3500sum.c')
-rw-r--r-- | tools/firmware-utils/src/dgn3500sum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/dgn3500sum.c b/tools/firmware-utils/src/dgn3500sum.c index eb80e6c01b..e86621bc1f 100644 --- a/tools/firmware-utils/src/dgn3500sum.c +++ b/tools/firmware-utils/src/dgn3500sum.c @@ -104,7 +104,7 @@ int main(int argc, char** argv) char *endptr, *buffer, *p; int count; // size of file in bytes unsigned short sum = 0, sum1 = 0; - char sumbuf[9]; + char sumbuf[8 + 8 + 1]; if(argc < 3) { printf("ERROR: Argument missing!\n\nUsage %s filename starting offset in hex [PID code]\n\n", argv[0]); |