summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:02:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-10-07 18:02:34 -0700
commitb9770941ae829ad2cb985efe809d6e3dd690648b (patch)
tree8a7373b23d8099bcbe627865ae0a2ac662d2af11 /main.c
parent0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (diff)
Call strdup directly, instead of via copy macro
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
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 == '.')