From a38846464fb1c4b05b06f2da5c202fe0c3eac5ef Mon Sep 17 00:00:00 2001 From: h_vogt Date: Fri, 4 Jun 2010 20:45:03 +0000 Subject: [PATCH] bug fix 300800 --- src/frontend/inpcom.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index b040fcdfd..d96e74c2f 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -733,7 +733,9 @@ comment_out_unused_subckt_models( struct line *start_card , int no_of_lines) int num_used_subckt_names = 0, num_used_model_names = 0, i = 0, num_terminals = 0, tmp_cnt = 0; bool processing_subckt = FALSE, found_subckt = FALSE, remove_subckt = FALSE, found_model = FALSE, has_models = FALSE; - /* generate arrays of *char for subckt or model names */ + /* generate arrays of *char for subckt or model names. Start + with 1000, but increase, if number of lines in deck is larger */ + if (no_of_lines < 1000) no_of_lines = 1000; used_subckt_names = (char**)tmalloc(no_of_lines); used_model_names = (char**)tmalloc(no_of_lines);