diff options
author | yangfl <yangfl@users.noreply.github.com> | 2018-09-19 11:15:50 +0800 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-19 18:16:13 +0000 |
commit | d3d5b701cb940e5f6c7cb2af199428fc8224e665 (patch) | |
tree | 227460e1cde95443856ccbc5f0bcf082874bd41c /testing | |
parent | 758bd9aa871666e1003691531f22f6dc515625bf (diff) |
Fix typos
Diffstat (limited to 'testing')
-rw-r--r-- | testing/misc_tools.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
67 | // You are responsible for freeing the return value! | 67 | // You are responsible for freeing the return value! |
68 | uint8_t *hex_string_to_bin(const char *hex_string) | 68 | uint8_t *hex_string_to_bin(const char *hex_string) |
69 | { | 69 | { |
70 | // byte is represented by exactly 2 hex digits, so lenth of binary string | 70 | // byte is represented by exactly 2 hex digits, so length of binary string |
71 | // is half of that of the hex one. only hex string with even length | 71 | // is half of that of the hex one. only hex string with even length |
72 | // valid. the more proper implementation would be to check if strlen(hex_string) | 72 | // valid. the more proper implementation would be to check if strlen(hex_string) |
73 | // is odd and return error code if it is. we assume strlen is even. if it's not | 73 | // is odd and return error code if it is. we assume strlen is even. if it's not |