1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* debug.c (ruby_debug_print_indent): use length in fprintf.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-02-23 19:03:32 +00:00
parent fe80dd73b9
commit f468e000ce

View file

@ -70,10 +70,7 @@ void
ruby_debug_print_indent(int level, int debug_level, int indent_level)
{
if (level < debug_level) {
int i;
for (i = 0; i < indent_level; i++) {
fprintf(stderr, " ");
}
fprintf(stderr, "%*s", indent_level, "");
fflush(stderr);
}
}