mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Add required cast on malloc; VS2013 errors.
This commit is contained in:
parent
18c7990bc4
commit
17c8988817
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue