mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +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:/";
|
||||
char part;
|
||||
|
||||
if (strncmp(cpe, PREFIX, strlen(PREFIX) != 0))
|
||||
if (strncmp(cpe, PREFIX, strlen(PREFIX)) != 0)
|
||||
return -1;
|
||||
/* This could be more robust, by decoding character escapes and checking ':'
|
||||
boundaries. */
|
||||
|
||||
Reference in New Issue
Block a user