1
0
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:
dmiller
2016-04-18 05:11:56 +00:00
parent 6b598fe547
commit 46c3db5fad

View File

@@ -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. */