From 3b7e0121e6d87e4bdaea39bd6477776cd0781548 Mon Sep 17 00:00:00 2001 From: Alexey Khromov Date: Sun, 26 May 2024 00:08:48 +0300 Subject: [PATCH] answering fix --- source/bforce/prot_emsi_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/bforce/prot_emsi_misc.c b/source/bforce/prot_emsi_misc.c index 7cb6c4a..c6422d0 100644 --- a/source/bforce/prot_emsi_misc.c +++ b/source/bforce/prot_emsi_misc.c @@ -518,6 +518,7 @@ int emsi_parsedat(char *emsi_dat, s_emsi *emsi) { int i; char *tmp, *p, *q, *n, *otmp; + otmp = malloc(80); while( (tmp=get_field(&emsi_dat, '{', '}')) != NULL ) { @@ -769,7 +770,7 @@ int emsi_parsedat(char *emsi_dat, s_emsi *emsi) strnxcat(emsi->addons, "}", sizeof(emsi->addons)); } } /* end of while */ - + free(otmp); return(0); }