diff options
author | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-01 09:31:34 +0100 |
---|---|---|
committer | Dirk Engling <erdgeist@erdgeist.org> | 2014-02-01 09:31:34 +0100 |
commit | d43b806acb50c9bd5cf309362fa5c5119058827f (patch) | |
tree | 742a54dba3bf291a1b455697d097238d53e06999 /src | |
parent | 18480b89393d779e3d17c97fe7f17018ed21baf0 (diff) |
include header file for string functions
Diffstat (limited to 'src')
-rw-r--r-- | src/decompress.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/decompress.c b/src/decompress.c index dea2bca..ef64b76 100644 --- a/src/decompress.c +++ b/src/decompress.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <stdio.h> | 2 | #include <stdio.h> |
3 | #include <unistd.h> | 3 | #include <unistd.h> |
4 | #include <fcntl.h> | 4 | #include <fcntl.h> |
5 | #include <string.h> | ||
5 | 6 | ||
6 | #define XORLEN (29) | 7 | #define XORLEN (29) |
7 | #define HUGEBLOCK (1024*1024) | 8 | #define HUGEBLOCK (1024*1024) |
@@ -15,7 +16,7 @@ int main(int argc, char **argv) { | |||
15 | unsigned const char xorkey [XORLEN] = "Just for Fun. Linus Torvalds."; | 16 | unsigned const char xorkey [XORLEN] = "Just for Fun. Linus Torvalds."; |
16 | unsigned char input [HUGEBLOCK]; | 17 | unsigned char input [HUGEBLOCK]; |
17 | unsigned char output [HUGEBLOCK]; | 18 | unsigned char output [HUGEBLOCK]; |
18 | unsigned char respath[32]; /* file_XXXXX\0 */ | 19 | char respath[32]; /* file_XXXXX\0 */ |
19 | int i, offs = 0, zres = 0, filenum = 0, resfile, avail=1; | 20 | int i, offs = 0, zres = 0, filenum = 0, resfile, avail=1; |
20 | z_stream z; memset( &z, 0, sizeof(z)); | 21 | z_stream z; memset( &z, 0, sizeof(z)); |
21 | 22 | ||