summaryrefslogtreecommitdiff
path: root/strftime.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-27 12:43:05 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-27 12:43:05 +0000
commit24a6416355e2d796aff643493cb273858e91b241 (patch)
treee35dd44e8b90fa97b8ebc9ded2cc96dee82685eb /strftime.c
parentab9fd5dbf79cd6316fd49e42fa57dbb77500f539 (diff)
* strftime.c (rb_strftime): should add padding for %%.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'strftime.c')
-rw-r--r--strftime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/strftime.c b/strftime.c
index 79c5fe4fa8..248c695e01 100644
--- a/strftime.c
+++ b/strftime.c
@@ -319,6 +319,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct tm *timept
goto unknown;
case '%':
+ FILL_PADDING(1);
*s++ = '%';
continue;