diff --git a/src/ccextractor.c b/src/ccextractor.c index cdd9dd1e..457249b2 100644 --- a/src/ccextractor.c +++ b/src/ccextractor.c @@ -123,7 +123,7 @@ int api_start(struct ccx_s_options api_options) switch (ctx->total_inputsize) { case -1*ENOENT: - fatal(EXIT_NO_INPUT_FILES, "Failed to open input file: File does not exist."); + fatal(EXIT_NO_INPUT_FILES, "Failed to open one of the input file(s): File does not exist."); case -1*EACCES: fatal(EXIT_READ_ERROR, "Failed to open input file: Unable to access"); case -1*EINVAL: diff --git a/src/lib_ccx/file_functions.c b/src/lib_ccx/file_functions.c index 9c428fe5..fa7d3dac 100644 --- a/src/lib_ccx/file_functions.c +++ b/src/lib_ccx/file_functions.c @@ -24,7 +24,7 @@ LLONG get_file_size (int in) return length; } -LLONG get_total_file_size (struct lib_ccx_ctx *ctx) // -1 if one or more files failed to open +LLONG get_total_file_size (struct lib_ccx_ctx *ctx) // -1 if one of the file(s) failed to open { LLONG ts=0; int h; diff --git a/src/lib_ccx/params.c b/src/lib_ccx/params.c index cf8e2c26..aeb017fe 100644 --- a/src/lib_ccx/params.c +++ b/src/lib_ccx/params.c @@ -114,6 +114,8 @@ int parsedelay (struct ccx_s_options *opt, char *par) int append_file_to_queue (struct ccx_s_options *opt,char *filename) { + if(filename[0] == '\0') //skip files with empty file name (ex : ./ccextractor "") + return 0; char *c=(char *) malloc (strlen (filename)+1); if (c==NULL) return -1; diff --git a/src/lib_ccx/params_dump.c b/src/lib_ccx/params_dump.c index 93f370ab..229f6161 100644 --- a/src/lib_ccx/params_dump.c +++ b/src/lib_ccx/params_dump.c @@ -11,8 +11,9 @@ void params_dump(struct lib_ccx_ctx *ctx) switch (ccx_options.input_source) { case CCX_DS_FILE: + dbg_print(CCX_DMT_VERBOSE, "Files (%d): ", ctx->num_input_files); for (int i=0;inum_input_files;i++) - mprint ("%s%s",ctx->inputfile[i],i==(ctx->num_input_files-1)?"":","); + mprint ("%s%s",ctx->inputfile[i],i==(ctx->num_input_files-1)?"":", "); break; case CCX_DS_STDIN: mprint ("stdin");