Correctly cast malloc parameter

This commit is contained in:
Bertold Van den Bergh 2019-08-25 15:55:38 +02:00
parent 29d52cebe2
commit 62365d381f
2 changed files with 1 additions and 2 deletions

View file

@ -24,7 +24,6 @@
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
CCARCH?=
CC?=$(CCARCH)gcc
STRIP?=$(CCARCH)strip

View file

@ -224,7 +224,7 @@ static char *ZDParseString(const ZoneDetect *library, uint32_t *index)
}
}
char *const str = malloc(strLength + 1);
char *const str = malloc((size_t)(strLength + 1));
if(str) {
#if defined(_MSC_VER)