diff options
Diffstat (limited to 'res/res_config_pgsql.c')
-rw-r--r-- | res/res_config_pgsql.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_config_pgsql.c b/res/res_config_pgsql.c index 02c76fcfe..bafa27197 100644 --- a/res/res_config_pgsql.c +++ b/res/res_config_pgsql.c @@ -290,7 +290,7 @@ static struct tables *find_table(const char *database, const char *orig_tablenam if (strchr(schemaname, '\\') || strchr(schemaname, '\'')) { char *tmp = schemaname, *ptr; - ptr = schemaname = alloca(strlen(tmp) * 2 + 1); + ptr = schemaname = ast_alloca(strlen(tmp) * 2 + 1); for (; *tmp; tmp++) { if (strchr("\\'", *tmp)) { *ptr++ = *tmp; @@ -303,7 +303,7 @@ static struct tables *find_table(const char *database, const char *orig_tablenam if (strchr(tablename, '\\') || strchr(tablename, '\'')) { char *tmp = tablename, *ptr; - ptr = tablename = alloca(strlen(tmp) * 2 + 1); + ptr = tablename = ast_alloca(strlen(tmp) * 2 + 1); for (; *tmp; tmp++) { if (strchr("\\'", *tmp)) { *ptr++ = *tmp; @@ -322,7 +322,7 @@ static struct tables *find_table(const char *database, const char *orig_tablenam const char *tmp = orig_tablename; char *ptr; - orig_tablename = ptr = alloca(strlen(tmp) * 2 + 1); + orig_tablename = ptr = ast_alloca(strlen(tmp) * 2 + 1); for (; *tmp; tmp++) { if (strchr("\\'", *tmp)) { *ptr++ = *tmp; |