1
0
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:
gitlost
2020-05-06 01:33:56 +01:00
parent d88d5906fd
commit 4391fb6a1d
6 changed files with 150 additions and 17 deletions

View File

@@ -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;