openbsd-ports/archivers/arc/patches/patch-arclzw_c
naddy 09f9bc1746 Update to 5.21n.
The upstream code now opens temporary files in a secure manner.
2005-10-13 18:05:20 +00:00

13 lines
429 B
Plaintext

$OpenBSD: patch-arclzw_c,v 1.2 2005/10/13 18:05:20 naddy Exp $
--- arclzw.c.orig Tue Oct 11 23:48:21 2005
+++ arclzw.c Tue Oct 11 23:48:30 2005
@@ -560,7 +560,7 @@ decomp(squash, f, t) /* decompress a fi
*/
if (code >= free_ent) {
if (code > free_ent) {
- if (warn) {
+ if (arcwarn) {
printf("Corrupted compressed file.\n");
printf("Invalid code %d when max is %d.\n",
code, free_ent);