Skip to content

Commit 94462f2

Browse files
authored
Update 38.c
1 parent bf124ed commit 94462f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode/src/38.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ char * countAndSay(int n){
1010
int k, j, count, convert = (int) result;
1111

1212
//Creating array with the length calculated above
13-
char * arr = malloc(result + 4);
13+
char * arr = malloc(convert + 4);
1414
arr[0] = '1';
1515
arr[1] = '\0';
1616

0 commit comments

Comments
 (0)