diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:02:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-07 18:02:34 -0700 |
commit | b9770941ae829ad2cb985efe809d6e3dd690648b (patch) | |
tree | 8a7373b23d8099bcbe627865ae0a2ac662d2af11 /main.c | |
parent | 0ecf5f3251033ab6efa1a0d881f75ed9ce60b5a4 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 == '.') |