summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMark Adler <fork@madler.net>2022-08-22 13:13:06 -0700
committerMark Adler <fork@madler.net>2022-08-23 15:35:13 -0700
commit5752b171fd4cc96b8d1f9526ec1940199c6e9740 (patch)
tree7d8d7e6bf5760cca696b77e72010a497a097061a /contrib
parent1eb7682f845ac9e9bf9ae35bbfb3bad5dacbd91d (diff)
downloadzlib-5752b171fd4cc96b8d1f9526ec1940199c6e9740.tar.gz
Fix some typos.
No code changes.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/infback9/inftree9.h2
-rw-r--r--contrib/puff/README2
-rw-r--r--contrib/puff/puff.c4
-rw-r--r--contrib/puff/pufftest.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/contrib/infback9/inftree9.h b/contrib/infback9/inftree9.h
index 5ab21f0..3b39497 100644
--- a/contrib/infback9/inftree9.h
+++ b/contrib/infback9/inftree9.h
@@ -38,7 +38,7 @@ typedef struct {
/* Maximum size of the dynamic table. The maximum number of code structures is
1446, which is the sum of 852 for literal/length codes and 594 for distance
codes. These values were found by exhaustive searches using the program
- examples/enough.c found in the zlib distribtution. The arguments to that
+ examples/enough.c found in the zlib distribution. The arguments to that
program are the number of symbols, the initial root table size, and the
maximum bit length of a code. "enough 286 9 15" for literal/length codes
returns returns 852, and "enough 32 6 15" for distance codes returns 594.
diff --git a/contrib/puff/README b/contrib/puff/README
index bbc4cb5..d8192c7 100644
--- a/contrib/puff/README
+++ b/contrib/puff/README
@@ -38,7 +38,7 @@ Then you can call puff() to decompress a deflate stream that is in memory in
its entirety at source, to a sufficiently sized block of memory for the
decompressed data at dest. puff() is the only external symbol in puff.c The
only C library functions that puff.c needs are setjmp() and longjmp(), which
-are used to simplify error checking in the code to improve readabilty. puff.c
+are used to simplify error checking in the code to improve readability. puff.c
does no memory allocation, and uses less than 2K bytes off of the stack.
If destlen is not enough space for the uncompressed data, then inflate will
diff --git a/contrib/puff/puff.c b/contrib/puff/puff.c
index c6c90d7..6737ff6 100644
--- a/contrib/puff/puff.c
+++ b/contrib/puff/puff.c
@@ -43,7 +43,7 @@
* - Use pointers instead of long to specify source and
* destination sizes to avoid arbitrary 4 GB limits
* 1.2 17 Mar 2002 - Add faster version of decode(), doubles speed (!),
- * but leave simple version for readabilty
+ * but leave simple version for readability
* - Make sure invalid distances detected if pointers
* are 16 bits
* - Fix fixed codes table error
@@ -624,7 +624,7 @@ local int fixed(struct state *s)
* are themselves compressed using Huffman codes and run-length encoding. In
* the list of code lengths, a 0 symbol means no code, a 1..15 symbol means
* that length, and the symbols 16, 17, and 18 are run-length instructions.
- * Each of 16, 17, and 18 are follwed by extra bits to define the length of
+ * Each of 16, 17, and 18 are followed by extra bits to define the length of
* the run. 16 copies the last length 3 to 6 times. 17 represents 3 to 10
* zero lengths, and 18 represents 11 to 138 zero lengths. Unused symbols
* are common, hence the special coding for zero lengths.
diff --git a/contrib/puff/pufftest.c b/contrib/puff/pufftest.c
index 7764814..5f72ecc 100644
--- a/contrib/puff/pufftest.c
+++ b/contrib/puff/pufftest.c
@@ -143,7 +143,7 @@ int main(int argc, char **argv)
len - sourcelen);
}
- /* if requested, inflate again and write decompressd data to stdout */
+ /* if requested, inflate again and write decompressed data to stdout */
if (put && ret == 0) {
if (fail)
destlen >>= 1;