diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 23:01:01 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-06-14 23:01:01 +0000 |
commit | 7a0fe5c93f93c827215ac7ed613130434c77e649 (patch) | |
tree | ca14014e3c226332296ae0d687f996e9d8dfe6b2 /main/file.c | |
parent | e95289a0e951770a0233260e49add9df9b20d97a (diff) |
Convert uses of strdup() to ast_strdup()
(issue #9983, eliel)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@69436 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/file.c')
-rw-r--r-- | main/file.c | 8 |
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 */ |