summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index f1a093a..bb66f82 100644
--- a/main.c
+++ b/main.c
@@ -742,7 +742,7 @@ done:
char *base_name(const char *in_file)
{
char *p;
- char *file = copy(in_file);
+ char *file = strdup(in_file);
for(p=file+strlen(file); p>file && *p != '.'; p--) ;
if (*p == '.')