summaryrefslogtreecommitdiff
path: root/clm.c
diff options
context:
space:
mode:
Diffstat (limited to 'clm.c')
-rw-r--r--clm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clm.c b/clm.c
index afe9305..3ae2ce3 100644
--- a/clm.c
+++ b/clm.c
@@ -382,6 +382,7 @@ static char *int_array_to_string(int *arr, int num_ints, const char *name)
{
int i, len;
char *intstr;
+ if (num_ints > 1024) num_ints = 1024; /* added 9-Apr-24 to try to make gcc happier */
len = num_ints * MAX_INT_SIZE + 64;
descr = (char *)calloc(len, sizeof(char));
intstr = (char *)malloc(MAX_INT_SIZE * sizeof(char));