mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-19 02:47:06 +00:00
gif.c: #191 suppress clang-tidy warning; very small bitmap fix
This commit is contained in:
@@ -545,6 +545,17 @@ char *testUtilReadCSVField(char *buffer, char *field, int field_size) {
|
||||
return b;
|
||||
}
|
||||
|
||||
void testUtilStrCpyRepeat(char *buffer, char *repeat, int size) {
|
||||
int i;
|
||||
int len = strlen(repeat);
|
||||
int max = size - len;
|
||||
for (i = 0; i < max; i += len) {
|
||||
memcpy(buffer + i, repeat, len);
|
||||
}
|
||||
memcpy(buffer + i, repeat, size - i);
|
||||
buffer[size] = '\0';
|
||||
}
|
||||
|
||||
int testUtilSymbolCmp(const struct zint_symbol *a, const struct zint_symbol *b) {
|
||||
if (a->symbology != b->symbology) {
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user