1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 08:29:04 +00:00

Add required cast on malloc; VS2013 errors.

This commit is contained in:
dmiller
2017-07-30 04:09:48 +00:00
parent 18c7990bc4
commit 17c8988817

View File

@@ -770,7 +770,7 @@ unsigned char *next_protos_parse(size_t *outlen, const char *in)
if (len >= 65535)
return NULL;
out = safe_malloc(strlen(in) + 1);
out = (unsigned char *)safe_malloc(strlen(in) + 1);
for (i = 0; i <= len; ++i) {
if (i == len || in[i] == ',') {
if (i - start > 255) {