1
0
mirror of https://git.code.sf.net/p/zint/code synced 2025-12-22 04:17:05 +00:00
This commit is contained in:
Rodrigo Torres
2017-09-10 12:03:09 -03:00
committed by Robin Stuart
parent 1882d76b70
commit 4963a772db
45 changed files with 334 additions and 351 deletions

View File

@@ -87,11 +87,11 @@ void to_upper(unsigned char source[]) {
/* Verifies that a string only uses valid characters */
int is_sane(const char test_string[], const unsigned char source[], const size_t length) {
unsigned int j, latch;
unsigned int j;
size_t i, lt = strlen(test_string);
for (i = 0; i < length; i++) {
latch = FALSE;
unsigned int latch = FALSE;
for (j = 0; j < lt; j++) {
if (source[i] == test_string[j]) {
latch = TRUE;