1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-24 04:15:57 +00:00

synchronized with master

This commit is contained in:
tgotic
2011-05-04 21:48:06 +02:00
parent 534bc69609
commit 891570299c
20 changed files with 159 additions and 135 deletions

View File

@@ -602,6 +602,9 @@ int maxicode(struct zint_symbol *symbol, unsigned char source[], int length)
}
if((mode == 2) || (mode == 3)) { /* Modes 2 and 3 need data in symbol->primary */
if(lp == 0){ /* Mode set manually means lp doesn't get set */
lp = strlen(symbol->primary);
}
if(lp != 15) {
strcpy(symbol->errtxt, "Invalid Primary String");
return ZERROR_INVALID_DATA;