From 7abf67c5e966f6409b13774ef9297ffc7d5ae17f Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 28 Apr 2002 21:22:37 +0000 Subject: init_dynamic_array MyODBC compatibility fix --- extra/mysql_install.c | 2 +- extra/resolve_stack_dump.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'extra') diff --git a/extra/mysql_install.c b/extra/mysql_install.c index 1fa62f35b7e..d02c054d4eb 100644 --- a/extra/mysql_install.c +++ b/extra/mysql_install.c @@ -135,7 +135,7 @@ static int init_question_widget(QUESTION_WIDGET* w, const char* question, } w->question = question; w->default_ind = default_ind; - if (init_dynamic_array(&w->answers,sizeof(char*), + if (my_init_dynamic_array(&w->answers,sizeof(char*), ANSWERS_CHUNCK,ANSWERS_CHUNCK)) die("Out of memory"); return 0; diff --git a/extra/resolve_stack_dump.c b/extra/resolve_stack_dump.c index 6c2ddf66027..7c33bd51dbe 100644 --- a/extra/resolve_stack_dump.c +++ b/extra/resolve_stack_dump.c @@ -230,9 +230,9 @@ static int init_sym_entry(SYM_ENTRY* se, char* buf) static void init_sym_table() { char buf[512]; - if(init_dynamic_array(&sym_table, sizeof(SYM_ENTRY), INIT_SYM_TABLE, + if(my_init_dynamic_array(&sym_table, sizeof(SYM_ENTRY), INIT_SYM_TABLE, INC_SYM_TABLE)) - die("Failed in init_dynamic_array() -- looks like out of memory problem"); + die("Failed in my_init_dynamic_array() -- looks like out of memory problem"); while(fgets(buf, sizeof(buf), fp_sym)) { -- cgit v1.2.1