vcpkg/ports/mchehab-zbar/issue219.patch
Ulysses1337 55112eb54a
[mchehab-zbar] Add new port (#16113)
* Add mchehab/zbar

* Quote all paths

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>

* Update to 0.23.90

* Flip name

* Update version registry

Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
2022-08-24 09:08:34 -07:00

14 lines
387 B
Diff

diff --git a/zbar/decoder/databar.c b/zbar/decoder/databar.c
index 8cfa848..ffb972e 100644
--- a/zbar/decoder/databar.c
+++ b/zbar/decoder/databar.c
@@ -695,7 +695,7 @@ lookup_sequence (databar_segment_t *seg,
seq[i++] = s;
}
dbprintf(2, "}");
- seq[n] = -1;
+ if (n<22) {seq[n]=-1;} /* https://github.com/mchehab/zbar/issues/219 */
return(fixed < 1);
}