From bc3794eb1401a305fc97034e043cdcc111545ac4 Mon Sep 17 00:00:00 2001 From: wforums Date: Fri, 15 Aug 2014 11:59:53 +0200 Subject: [PATCH] Library - step one and hafl - --- src/ccextractor.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ccextractor.c b/src/ccextractor.c index 09b75e2d..b2198a88 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -536,14 +536,7 @@ int main(int argc, char *argv[]) { fatal(CCX_COMMON_EXIT_FILE_CREATION_FAILED, "Unable to open clean file: %s\n", ccx_options.out_elementarystream_filename); } - } - if (ccx_options.line_terminator_lf) - encoded_crlf_length = encode_line (encoded_crlf,(unsigned char *) "\n"); - else - encoded_crlf_length = encode_line (encoded_crlf,(unsigned char *) "\r\n"); - - encoded_br_length = encode_line (encoded_br, (unsigned char *) "
"); - + } build_parity_table(); @@ -552,6 +545,13 @@ int main(int argc, char *argv[]) // Initialize libraries init_libraries(); + + if (ccx_options.line_terminator_lf) + encoded_crlf_length = encode_line(encoded_crlf, (unsigned char *) "\n"); + else + encoded_crlf_length = encode_line(encoded_crlf, (unsigned char *) "\r\n"); + + encoded_br_length = encode_line(encoded_br, (unsigned char *) "
"); time_t start, final;