From 3dc428944f6e2630bcc4b221093c2fbb8609c059 Mon Sep 17 00:00:00 2001 From: Can Alkan Date: Thu, 9 May 2019 16:07:02 +0300 Subject: [PATCH] output prefix bug fixed --- common.c | 9 ++++++++- sonic | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/common.c b/common.c index 0daf1ef..9910596 100644 --- a/common.c +++ b/common.c @@ -519,7 +519,10 @@ void get_working_directory(parameters *params){ directory = strrchr(params->outprefix, '/'); - prefix = directory + 1; + prefix = NULL; + set_str( &prefix, directory + 1); + if ( debug_mode) + fprintf (stderr, "prefix: %s\n", prefix); if (directory == NULL){ //set_str(&(params->outdir), "./"); @@ -538,7 +541,11 @@ void get_working_directory(parameters *params){ free( params->outprefix); params->outprefix = NULL; + if ( debug_mode) + fprintf (stderr, "prefix2: %s\n", prefix); + set_str( &(params->outprefix), prefix); + free (prefix); } char *get_file_name(char *path) diff --git a/sonic b/sonic index de03e9d..3bb5262 160000 --- a/sonic +++ b/sonic @@ -1 +1 @@ -Subproject commit de03e9db578822801775daab6dbe8b905ce1879d +Subproject commit 3bb52624da68a3461b7f3800cba24a2aaac9429c