diff options
-rw-r--r-- | core/uemis-downloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index 023ac8eaa..53aa6dada 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -882,7 +882,7 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char * #if UEMIS_DEBUG & 4 fprintf(debugfile, "Expect to find section %s\n", sections[nr_sections]); #endif - if (nr_sections < sizeof(sections) - 1) + if (nr_sections < sizeof(sections) / sizeof(*sections) - 1) nr_sections++; continue; } |