X-Git-Url: https://git.cworth.org/git?p=gzip;a=blobdiff_plain;f=bits.c;h=ee053dc081d5dc8566c5c286b1b955a3bde917c1;hp=995523de37974d5518a8913f72099c44a8dbbdfa;hb=e7921f54c622e3b32e525f345bc34308821e4ae0;hpb=c9eb602f6f5c10a521e7274640033f6a35deca1d diff --git a/bits.c b/bits.c index 995523d..ee053dc 100644 --- a/bits.c +++ b/bits.c @@ -1,8 +1,21 @@ /* bits.c -- output variable-length bit strings - * Copyright (C) 1992-1993 Jean-loup Gailly - * This is free software; you can redistribute it and/or modify it under the - * terms of the GNU General Public License, see the file COPYING. - */ + + Copyright (C) 1999 Free Software Foundation, Inc. + Copyright (C) 1992-1993 Jean-loup Gailly + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ /* @@ -61,7 +74,7 @@ #endif #ifdef RCSID -static char rcsid[] = "$Id: bits.c,v 0.9 1993/06/11 10:16:58 jloup Exp $"; +static char rcsid[] = "$Id: bits.c,v 1.4 2006/11/20 08:40:33 eggert Exp $"; #endif /* =========================================================================== @@ -187,7 +200,7 @@ void copy_block(buf, len, header) bi_windup(); /* align on byte boundary */ if (header) { - put_short((ush)len); + put_short((ush)len); put_short((ush)~len); #ifdef DEBUG bits_sent += 2*16;