From d3d5b701cb940e5f6c7cb2af199428fc8224e665 Mon Sep 17 00:00:00 2001 From: yangfl Date: Wed, 19 Sep 2018 11:15:50 +0800 Subject: Fix typos --- testing/misc_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testing') diff --git a/testing/misc_tools.c b/testing/misc_tools.c index 16fb2e22..360d7a35 100644 --- a/testing/misc_tools.c +++ b/testing/misc_tools.c @@ -67,7 +67,7 @@ void c_sleep(uint32_t x) // You are responsible for freeing the return value! uint8_t *hex_string_to_bin(const char *hex_string) { - // byte is represented by exactly 2 hex digits, so lenth of binary string + // byte is represented by exactly 2 hex digits, so length of binary string // is half of that of the hex one. only hex string with even length // valid. the more proper implementation would be to check if strlen(hex_string) // is odd and return error code if it is. we assume strlen is even. if it's not -- cgit v1.2.3