diff --git a/library/Makefile b/library/Makefile index 4f82fca..bf89b16 100644 --- a/library/Makefile +++ b/library/Makefile @@ -24,7 +24,6 @@ #SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -CCARCH?= CC?=$(CCARCH)gcc STRIP?=$(CCARCH)strip diff --git a/library/zonedetect.c b/library/zonedetect.c index 9da6139..d08a73b 100644 --- a/library/zonedetect.c +++ b/library/zonedetect.c @@ -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)