mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-24 05:17:05 +00:00
CODEONE/ULTRA overrun fixes; TELEPEN fixes; CODEONE/LOGMARS/VIN/CODABAR options; GUI updates; tests
This commit is contained in:
@@ -624,6 +624,10 @@ void testUtilStrCpyRepeat(char *buffer, char *repeat, int size) {
|
||||
int i;
|
||||
int len = strlen(repeat);
|
||||
int max = size - len;
|
||||
if (len == 0) {
|
||||
fprintf(stderr, "testUtilStrCpyRepeat: only use non-empty, non-NUL single-byte data for repeat pattern\n");
|
||||
abort();
|
||||
}
|
||||
for (i = 0; i < max; i += len) {
|
||||
memcpy(buffer + i, repeat, len);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user