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/http.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/http.c')
-rw-r--r-- | main/http.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/http.c b/main/http.c index 2967298e7..c385c34c5 100644 --- a/main/http.c +++ b/main/http.c @@ -215,12 +215,12 @@ static struct ast_str *static_callback(struct sockaddr_in *req, const char *uri, out404: *status = 404; - *title = strdup("Not Found"); + *title = ast_strdup("Not Found"); return ast_http_error(404, "Not Found", NULL, "Nothing to see here. Move along."); out403: *status = 403; - *title = strdup("Access Denied"); + *title = ast_strdup("Access Denied"); return ast_http_error(403, "Access Denied", NULL, "Sorry, I cannot let you do that, Dave."); } @@ -616,7 +616,7 @@ static struct ast_str *handle_uri(struct sockaddr_in *sin, char *uri, int *statu out = ast_http_error(302, "Moved Temporarily", buf, "There is no spoon..."); *status = 302; - *title = strdup("Moved Temporarily"); + *title = ast_strdup("Moved Temporarily"); break; } } @@ -655,7 +655,7 @@ static struct ast_str *handle_uri(struct sockaddr_in *sin, char *uri, int *statu out = ast_http_error(404, "Not Found", NULL, "The requested URL was not found on this server."); *status = 404; - *title = strdup("Not Found"); + *title = ast_strdup("Not Found"); } cleanup: |