mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00:00
DPD: fix no terminating NUL (required by c128_cost()), regression
introduced by last commit [fef8b0], and only picked up in a fairly random test on the mac build :(
This commit is contained in:
@@ -236,6 +236,7 @@ static int c128_set_values(const unsigned char source[], const int length, const
|
||||
|
||||
memset(costs, 0, sizeof(*costs) * length);
|
||||
|
||||
assert(source[length] == '\0'); /* Terminating NUL required by `c128_cost()` */
|
||||
c128_cost(source, length, 0 /*i*/, 0 /*prior_cset*/, start_idx, priority, fncs, manuals, costs, modes);
|
||||
|
||||
if (costs[0][0] > C128_SYMBOL_MAX) { /* Total minimal cost (glyph count) */
|
||||
|
||||
Reference in New Issue
Block a user