mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-08 12:32:01 +00:00
dxfilmedge: make raw_segs consistent with zxing-cpp
Details see here: https://github.com/zxing-cpp/zxing-cpp/issues/883#issuecomment-2776593838
This commit is contained in:
committed by
gitlost
parent
789e049945
commit
b423e260b9
@@ -246,7 +246,7 @@ static int dx_parse_code(struct zint_symbol *symbol, const unsigned char *source
|
||||
|
||||
*output_length = bp;
|
||||
|
||||
if (raw_text && rt_printf_256(symbol, "%04d%s", (dx_code_1 << 4) | dx_code_2, frame_info)) {
|
||||
if (raw_text && rt_printf_256(symbol, (*has_frame_info ? "%d-%d%s%s" : "%d-%d"), dx_code_1, dx_code_2, "/", frame_info)) {
|
||||
return ZINT_ERROR_MEMORY; /* `rt_printf_256()` only fails with OOM */
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user