diff --git a/source/libublsettings.c b/source/libublsettings.c index fe57668..4d80b3e 100644 --- a/source/libublsettings.c +++ b/source/libublsettings.c @@ -494,7 +494,7 @@ int yon_char_check_begins_with(char *haystack, char *needle){ char *yon_char_parsed_check_exist_begins_with(char **target, int size, char *compare){ for (int i=0;i= 10; i++) - { - convert_check = convert_check / 10; - } + int i = snprintf( NULL, 0, "%d", int_to_convert ); + char *ch = malloc(i * sizeof(char) + 1); memset(ch,0,i * sizeof(char) + 1); sprintf(ch, "%d", int_to_convert);