From 3de25caf11f9df45949b437e01737b44b1bc9d05 Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 30 Nov 2008 09:24:50 +0000 Subject: merges r20379 from trunk into ruby_1_9_1. * strftime.c (rb_strftime): should add padding for %%. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++---- strftime.c | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index d386bc189..a9e8b0876 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,6 @@ -Thu Nov 27 23:54:37 2008 Yukihiro Matsumoto +Thu Nov 27 21:41:29 2008 Tadayoshi Funaba - * gc.c (gc_mark): still needs to check stack depth during GC. - - * gc.c (stack_check): ditto. + * strftime.c (rb_strftime): should add padding for %%. Thu Nov 27 16:32:53 2008 Nobuyoshi Nakada diff --git a/strftime.c b/strftime.c index 79c5fe4fa..248c695e0 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; -- cgit