mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-20 03:17:12 +00:00
CODE128: suppress cppcheck out-of-bounds warning; plus others (#233)
This commit is contained in:
@@ -612,9 +612,9 @@ const char *testUtilOption3Name(int option_3) {
|
||||
|
||||
if (high_byte) {
|
||||
if (option_3 & 0xFF) {
|
||||
sprintf(buffer, "%s | (%d << 8)", name, high_byte);
|
||||
sprintf(buffer, "%s | (%d << 8)", name, (int) high_byte);
|
||||
} else {
|
||||
sprintf(buffer, "%d << 8", high_byte);
|
||||
sprintf(buffer, "%d << 8", (int) high_byte);
|
||||
}
|
||||
return buffer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user