mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Put parenthesis in the right place. Closes #367
This commit is contained in:
2
utils.cc
2
utils.cc
@@ -574,7 +574,7 @@ int cpe_get_part(const char *cpe) {
|
|||||||
const char *PREFIX = "cpe:/";
|
const char *PREFIX = "cpe:/";
|
||||||
char part;
|
char part;
|
||||||
|
|
||||||
if (strncmp(cpe, PREFIX, strlen(PREFIX) != 0))
|
if (strncmp(cpe, PREFIX, strlen(PREFIX)) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
/* This could be more robust, by decoding character escapes and checking ':'
|
/* This could be more robust, by decoding character escapes and checking ':'
|
||||||
boundaries. */
|
boundaries. */
|
||||||
|
|||||||
Reference in New Issue
Block a user