Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 549b1fb

Browse files
Merge pull request begeekmyfriend#26 from zl3one6/dev
case 0012 bug fix
2 parents 535d281 + 6d87a27 commit 549b1fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

0012_roman_numeral/roman_numeral.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ static char *intToRoman(int num)
8282
num2char(&p, hundred_bit, 2);
8383
num2char(&p, ten_bit, 1);
8484
num2char(&p, one_bit, 0);
85-
85+
*p = '\0';
86+
8687
return roman_numeral;
8788
}
8889

0 commit comments

Comments
 (0)