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
..
2021-06-07 21:35:33 -05:00
2022-01-16 17:36:21 +08:00
2021-06-16 09:03:06 -05:00
2022-03-07 00:58:19 +08:00
2022-01-06 10:30:41 +08:00
2022-01-06 10:30:41 +08:00
2021-06-07 21:35:33 -05:00
2021-06-07 21:35:33 -05:00
2021-06-07 21:35:33 -05:00
2022-01-06 10:30:41 +08:00
2020-01-31 08:29:24 -06:00
2021-06-07 21:35:33 -05:00
2021-06-07 21:35:33 -05:00