diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-27 12:43:05 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-11-27 12:43:05 +0000 |
| commit | 6e01a9651154dd6019768b4a3dc0b2a3dea9c11e (patch) | |
| tree | e35dd44e8b90fa97b8ebc9ded2cc96dee82685eb | |
| parent | c4ed9fad73ca15028835b4ec14e182214b76b789 (diff) | |
| download | ruby-6e01a9651154dd6019768b4a3dc0b2a3dea9c11e.tar.gz ruby-6e01a9651154dd6019768b4a3dc0b2a3dea9c11e.tar.xz ruby-6e01a9651154dd6019768b4a3dc0b2a3dea9c11e.zip | |
* strftime.c (rb_strftime): should add padding for %%.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | strftime.c | 1 |
2 files changed, 5 insertions, 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 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; |
