nuttx-apps/graphics
Xiang Xiao 2385718f1c graphics/nxwidgets: Fix the compiler warning
src/cprogressbar.cxx: In member function 'virtual void NXWidgets::CProgressBar::drawContents(NXWidgets::CGraphicsPort*)':
Error: src/cprogressbar.cxx:185:22: error: '%d' directive writing between 1 and 8 bytes into a region of size 6 [-Werror=format-overflow=]
  185 |       sprintf(text, "%d%%", (100 * m_value) / (m_maximumValue - m_minimumValue));
      |                      ^~
src/cprogressbar.cxx:185:21: note: directive argument in the range [-3276800, 3276800]
  185 |       sprintf(text, "%d%%", (100 * m_value) / (m_maximumValue - m_minimumValue));
      |                     ^~~~~~
src/cprogressbar.cxx:185:14: note: 'sprintf' output between 3 and 10 bytes into a destination of size 6
  185 |       sprintf(text, "%d%%", (100 * m_value) / (m_maximumValue - m_minimumValue));
      |       ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-03-07 00:58:19 +08:00
..
ft80x Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
lvgl include: fix double include pre-processor guards 2022-01-16 17:36:21 +08:00
nxglyphs author: Ken Pettit: update licenses to Apache 2021-06-16 09:03:06 -05:00
nxwidgets graphics/nxwidgets: Fix the compiler warning 2022-03-07 00:58:19 +08:00
nxwm Typo fixes. 2022-01-06 10:30:41 +08:00
pdcurs34 Typo fixes. 2022-01-06 10:30:41 +08:00
screenshot Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
slcd Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
tiff Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
twm4nx Typo fixes. 2022-01-06 10:30:41 +08:00
.gitignore Remove extra whitespace from files (#43) 2020-01-31 08:29:24 -06:00
Make.defs Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00
Makefile Makefiles: Gregory Nutt: update licenses to Apache 2021-06-07 21:35:33 -05:00