From 94462f2fe6beeb1657dcb76be02ca4b29d4e620e Mon Sep 17 00:00:00 2001 From: batyil <52473505+batyil@users.noreply.github.com> Date: Thu, 31 Oct 2019 07:11:22 +0300 Subject: [PATCH] Update 38.c --- leetcode/src/38.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/leetcode/src/38.c b/leetcode/src/38.c index 7f81167b3..872b25ca0 100644 --- a/leetcode/src/38.c +++ b/leetcode/src/38.c @@ -10,7 +10,7 @@ char * countAndSay(int n){ int k, j, count, convert = (int) result; //Creating array with the length calculated above - char * arr = malloc(result + 4); + char * arr = malloc(convert + 4); arr[0] = '1'; arr[1] = '\0';