diff options
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -802,7 +802,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt) blen++; need--; } - while (need-- - strlen(expr) > 0) { + while (need-- > strlen(expr)) { buf[blen++] = '0'; } strncpy(&buf[blen], expr, strlen(expr)); |