diff options
author | Thomas White <taw@physics.org> | 2010-09-24 18:11:39 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:59 +0100 |
commit | 7e146b3b58eef65e630c082af362342e04eae099 (patch) | |
tree | aed6ed92614d31ad0572043068fc075775d81065 /src/reintegrate.c | |
parent | a48a07c11a473112d79a455cb8daa8cf4ba7a2d9 (diff) |
Fix the usage of basename()
Diffstat (limited to 'src/reintegrate.c')
-rw-r--r-- | src/reintegrate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reintegrate.c b/src/reintegrate.c index 3a94c48f..af5f9e7a 100644 --- a/src/reintegrate.c +++ b/src/reintegrate.c @@ -254,7 +254,7 @@ static void integrate_all(int nthreads, struct detector *det, FILE *fh, if ( rval == 1 ) break; if ( config_basename ) { char *tmp; - tmp = basename(filename); + tmp = strdup(basename(filename)); free(filename); filename = tmp; } @@ -309,7 +309,7 @@ static void integrate_all(int nthreads, struct detector *det, FILE *fh, if ( rval == 1 ) break; if ( config_basename ) { char *tmp; - tmp = basename(filename); + tmp = strdup(basename(filename)); free(filename); filename = tmp; } |