From 09e166dad50341c60f011da64516cdcd93e3f005 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Sat, 5 Oct 2013 06:03:29 +0200 Subject: [PATCH] mark.c: remove superfluous strlen call --- mark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mark.c b/mark.c index 66dd26c..ae25f55 100644 --- a/mark.c +++ b/mark.c @@ -106,7 +106,7 @@ void fill_with_string(void) l1 = mark_max - mark_min + 1; l2 = strlen(tmp2); if (hexOrAscii) { - if (strlen(tmp2) == 1) { + if (l2 == 1) { if (!isxdigit(*tmp2)) { displayMessageAndWaitForKey("Invalid hexa string"); return; } *tmp2 = hexCharToInt(*tmp2); } else if (!hexStringToBinString(tmp2, &l2)) return; -- 2.11.4.GIT