mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-09 13:41:59 -04:00
NULL character support
This commit is contained in:
parent
1015a11b5a
commit
d6df698918
20 changed files with 2286 additions and 1849 deletions
|
@ -80,7 +80,11 @@ int telepen(struct zint_symbol *symbol, unsigned char source[])
|
|||
for (i=0; i < ustrlen(source); i++)
|
||||
{
|
||||
ascii_value = source[i];
|
||||
concat(dest, TeleTable[ascii_value]);
|
||||
if(ascii_value == symbol->nullchar) {
|
||||
concat(dest, TeleTable[0]);
|
||||
} else {
|
||||
concat(dest, TeleTable[ascii_value]);
|
||||
}
|
||||
count += source[i];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue