mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
ab9fd5dbf7
commit
24a6416355
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Nov 27 21:41:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
|
||||
|
||||
* strftime.c (rb_strftime): should add padding for %%.
|
||||
|
||||
Thu Nov 27 16:32:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* signal.c (register_sigaltstack): stores alt stack for debug
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue