mirror of
https://github.com/BertoldVdb/ZoneDetect.git
synced 2026-04-27 14:57:40 +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.
|
#SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
|
||||||
CCARCH?=
|
|
||||||
CC?=$(CCARCH)gcc
|
CC?=$(CCARCH)gcc
|
||||||
STRIP?=$(CCARCH)strip
|
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(str) {
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue