From 46c3db5fad9be4749fef02e0d511ab0090dfce70 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 18 Apr 2016 05:11:56 +0000 Subject: [PATCH] Put parenthesis in the right place. Closes #367 --- utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.cc b/utils.cc index 25cbbcd14..f13c668fe 100644 --- a/utils.cc +++ b/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. */