Module Name: src
Committed By: christos
Date: Mon Oct 29 00:14:37 UTC 2018
Modified Files:
src/usr.bin/gzip: unlz.c
Log Message:
fix typo.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/usr.bin/gzip/unlz.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/gzip/unlz.c
diff -u src/usr.bin/gzip/unlz.c:1.4 src/usr.bin/gzip/unlz.c:1.5
--- src/usr.bin/gzip/unlz.c:1.4 Sat Oct 27 19:40:04 2018
+++ src/usr.bin/gzip/unlz.c Sun Oct 28 20:14:37 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: unlz.c,v 1.4 2018/10/27 23:40:04 christos Exp $ */
+/* $NetBSD: unlz.c,v 1.5 2018/10/29 00:14:37 christos Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -597,7 +597,7 @@ static unsigned
lz_get_dict_size(unsigned char c)
{
unsigned dict_size = 1 << (c & 0x1f);
- dict_size = (dict_size >> 2) * ( (c >> 5) & 0x7);
+ dict_size -= (dict_size >> 2) * ( (c >> 5) & 0x7);
if (dict_size < MIN_DICTIONARY_SIZE || dict_size > MAX_DICTIONARY_SIZE)
return 0;
return dict_size;