From 3e9f456f7335b92c3c4e022c19fffe658dad113e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 19 Jul 2013 23:16:57 +0000 Subject: [PATCH] fix typo --- examples/client_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index c2dd6f78f..1b1ec30d6 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -257,9 +257,9 @@ bool is_hex(char const *in, int len) { for (char const* end = in + len; in < end; ++in) { - if (in >= '0' && in <= '9') continue; - if (in >= 'A' && in <= 'F') continue; - if (in >= 'a' && in <= 'f') continue; + if (*in >= '0' && *in <= '9') continue; + if (*in >= 'A' && *in <= 'F') continue; + if (*in >= 'a' && *in <= 'f') continue; return false; } return true; @@ -1327,7 +1327,7 @@ int main(int argc, char* argv[]) { // match it against the @ format if (strlen(argv[i]) > 45 - && is_hex(argv[i], 40) + && ::is_hex(argv[i], 40) && (strncmp(argv[i] + 40, "@http://", 8) == 0 || strncmp(argv[i] + 40, "@udp://", 7) == 0)) {