summaryrefslogtreecommitdiffstats
path: root/src/types.c
diff options
context:
space:
mode:
authorgramanas <anastasis.gramm2@gmail.com>2022-05-10 21:12:33 +0300
committergramanas <anastasis.gramm2@gmail.com>2022-05-10 21:12:33 +0300
commit16538abf8d1231279133508ba15376145b818518 (patch)
treee19079645f87163f674faa333044330c37374ea9 /src/types.c
parente739c5dccc0faf13cbddacd1950e203305aa4bab (diff)
downloadfoodtools-16538abf8d1231279133508ba15376145b818518.tar.gz
foodtools-16538abf8d1231279133508ba15376145b818518.tar.bz2
foodtools-16538abf8d1231279133508ba15376145b818518.zip
autotools and check testign suite
Diffstat (limited to 'src/types.c')
-rw-r--r--src/types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types.c b/src/types.c
index 3233323..8918d98 100644
--- a/src/types.c
+++ b/src/types.c
@@ -370,7 +370,7 @@ distinct_sum_items(recipe * dst, recipe * src)
for (int i = 0; i < src->in; i++) {
int n = item_exists(src->i[i]->name, dst);
if (n != -1) {
- char tmp[2048] = "";
+ char tmp[FODD_MAX_ARRAY] = "";
strcat(tmp, dst->i[n]->qty);
strcat(tmp, " + ");
strcat(tmp, src->i[i]->qty);