mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-03-25 08:45:56 +00:00
Correctly cast malloc parameter
This commit is contained in:
parent
29d52cebe2
commit
62365d381f
2 changed files with 1 additions and 2 deletions
|
|
@ -24,7 +24,6 @@
|
|||
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
CCARCH?=
|
||||
CC?=$(CCARCH)gcc
|
||||
STRIP?=$(CCARCH)strip
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue