summaryrefslogtreecommitdiff
path: root/main/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/file.c')
-rw-r--r--main/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/file.c b/main/file.c
index cd5e2e435..3c809e9c0 100644
--- a/main/file.c
+++ b/main/file.c
@@ -839,7 +839,7 @@ struct ast_filestream *ast_readfile(const char *filename, const char *type, cons
fs->fmt = f;
fs->flags = flags;
fs->mode = mode;
- fs->filename = strdup(filename);
+ fs->filename = ast_strdup(filename);
fs->vfs = NULL;
break;
}
@@ -950,11 +950,11 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con
fs->flags = flags;
fs->mode = mode;
if (orig_fn) {
- fs->realfilename = strdup(orig_fn);
- fs->filename = strdup(fn);
+ fs->realfilename = ast_strdup(orig_fn);
+ fs->filename = ast_strdup(fn);
} else {
fs->realfilename = NULL;
- fs->filename = strdup(filename);
+ fs->filename = ast_strdup(filename);
}
fs->vfs = NULL;
/* If truncated, we'll be at the beginning; if not truncated, then append */