diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2012-10-24 22:47:37 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2012-10-24 22:47:37 -0700 |
commit | b8522e0264b1dbad8c0deaf8f62fb80b41b3716d (patch) | |
tree | bf50a7ec24a9a7447867e485ea34cf062675d098 | |
parent | e69a9ceee0f38e817fc87930ad9792aada3d82fe (diff) | |
download | zlib-b8522e0264b1dbad8c0deaf8f62fb80b41b3716d.tar.gz zlib-b8522e0264b1dbad8c0deaf8f62fb80b41b3716d.tar.bz2 zlib-b8522e0264b1dbad8c0deaf8f62fb80b41b3716d.zip |
Add note to contrib/blast to use binary mode in stdio.
-rw-r--r-- | contrib/blast/blast.c | 5 | ||||
-rw-r--r-- | contrib/blast/blast.h | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/contrib/blast/blast.c b/contrib/blast/blast.c index 4ce697a..d45925a 100644 --- a/contrib/blast/blast.c +++ b/contrib/blast/blast.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* blast.c | 1 | /* blast.c |
2 | * Copyright (C) 2003 Mark Adler | 2 | * Copyright (C) 2003, 2012 Mark Adler |
3 | * For conditions of distribution and use, see copyright notice in blast.h | 3 | * For conditions of distribution and use, see copyright notice in blast.h |
4 | * version 1.1, 16 Feb 2003 | 4 | * version 1.2, 24 Oct 2012 |
5 | * | 5 | * |
6 | * blast.c decompresses data compressed by the PKWare Compression Library. | 6 | * blast.c decompresses data compressed by the PKWare Compression Library. |
7 | * This function provides functionality similar to the explode() function of | 7 | * This function provides functionality similar to the explode() function of |
@@ -22,6 +22,7 @@ | |||
22 | * | 22 | * |
23 | * 1.0 12 Feb 2003 - First version | 23 | * 1.0 12 Feb 2003 - First version |
24 | * 1.1 16 Feb 2003 - Fixed distance check for > 4 GB uncompressed data | 24 | * 1.1 16 Feb 2003 - Fixed distance check for > 4 GB uncompressed data |
25 | * 1.2 24 Oct 2012 - Add note about using binary mode in stdio | ||
25 | */ | 26 | */ |
26 | 27 | ||
27 | #include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */ | 28 | #include <setjmp.h> /* for setjmp(), longjmp(), and jmp_buf */ |
diff --git a/contrib/blast/blast.h b/contrib/blast/blast.h index ce9e541..658cfd3 100644 --- a/contrib/blast/blast.h +++ b/contrib/blast/blast.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* blast.h -- interface for blast.c | 1 | /* blast.h -- interface for blast.c |
2 | Copyright (C) 2003 Mark Adler | 2 | Copyright (C) 2003, 2012 Mark Adler |
3 | version 1.1, 16 Feb 2003 | 3 | version 1.2, 24 Oct 2012 |
4 | 4 | ||
5 | This software is provided 'as-is', without any express or implied | 5 | This software is provided 'as-is', without any express or implied |
6 | warranty. In no event will the author be held liable for any damages | 6 | warranty. In no event will the author be held liable for any damages |
@@ -28,6 +28,10 @@ | |||
28 | * that library. (Note: PKWare overused the "implode" verb, and the format | 28 | * that library. (Note: PKWare overused the "implode" verb, and the format |
29 | * used by their library implode() function is completely different and | 29 | * used by their library implode() function is completely different and |
30 | * incompatible with the implode compression method supported by PKZIP.) | 30 | * incompatible with the implode compression method supported by PKZIP.) |
31 | * | ||
32 | * The binary mode for stdio functions should be used to assure that the | ||
33 | * compressed data is not corrupted when read or written. For example: | ||
34 | * fopen(..., "rb") and fopen(..., "wb"). | ||
31 | */ | 35 | */ |
32 | 36 | ||
33 | 37 | ||