use character literal string find override
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: Ie44efe04fb9625f7ecfdea7eb778110c2ae99ebc
diff --git a/ethstats.cpp b/ethstats.cpp
index cc8599d..36df0e8 100644
--- a/ethstats.cpp
+++ b/ethstats.cpp
@@ -119,7 +119,7 @@
// Basically you can't easily inject ../ or /../ into the path below.
// Decided to make this more robust, although since it appends to the path
// it would limit any exposure.
- if (name.find("/") != std::string::npos)
+ if (name.find('/') != std::string::npos)
{
std::fprintf(stderr, "Invalid or illegal name: '%s'\n", name.c_str());
return IPMI_CC_INVALID_FIELD_REQUEST;