mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-20 10:15:10 -04:00
Remove minor omission in sanity check
This commit is contained in:
parent
d877168b61
commit
bd840d1ab9
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ int is_sane(char test_string[], unsigned char source[])
|
||||||
{ /* Verifies that a string only uses valid characters */
|
{ /* Verifies that a string only uses valid characters */
|
||||||
unsigned int i, j, latch;
|
unsigned int i, j, latch;
|
||||||
|
|
||||||
for(i = 0; i < ustrlen(source) - 1; i++) {
|
for(i = 0; i < ustrlen(source); i++) {
|
||||||
latch = FALSE;
|
latch = FALSE;
|
||||||
for(j = 0; j < strlen(test_string); j++) {
|
for(j = 0; j < strlen(test_string); j++) {
|
||||||
if (source[i] == test_string[j]) { latch = TRUE; } }
|
if (source[i] == test_string[j]) { latch = TRUE; } }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue