From 6aebea2cde996866248a2da92bb3051e6c1cf982 Mon Sep 17 00:00:00 2001 From: hasufell Date: Sun, 25 May 2014 22:50:39 +0200 Subject: [PATCH] ASCII->POLY: improve readability --- src/ascii_poly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ascii_poly.c b/src/ascii_poly.c index 4fbf4af..348a018 100644 --- a/src/ascii_poly.c +++ b/src/ascii_poly.c @@ -82,7 +82,7 @@ static char *get_int_to_bin_str(uint8_t value) */ static char *get_bin_arr_to_ascii(char *binary_rep) { - const size_t int_arr_size = strlen(binary_rep) / 8; + const size_t int_arr_size = strlen(binary_rep) / ASCII_BITS; uint8_t int_arr[int_arr_size]; char *tmp_string = binary_rep; uint32_t i = 0;