Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/gzip fix typo.
details: https://anonhg.NetBSD.org/src/rev/28fa0334332d
branches: trunk
changeset: 445430:28fa0334332d
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 29 00:14:37 2018 +0000
description:
fix typo.
diffstat:
usr.bin/gzip/unlz.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 3743ab4dd135 -r 28fa0334332d usr.bin/gzip/unlz.c
--- a/usr.bin/gzip/unlz.c Sun Oct 28 21:36:34 2018 +0000
+++ b/usr.bin/gzip/unlz.c Mon Oct 29 00:14:37 2018 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index