diff options
author | Igor Sysoev <igor@sysoev.ru> | 2004-10-25 15:29:23 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2004-10-25 15:29:23 +0000 |
commit | 723e6cc248470b95f62e338cd5e1a6514975f9cc (patch) | |
tree | dd9fb2b16d384f241c2303d3cbb6e25aeeb89ab0 /src/core/ngx_string.c | |
parent | 4925ed843a96d9b2dbb41ef961cc37e9fa03539a (diff) | |
download | nginx-723e6cc248470b95f62e338cd5e1a6514975f9cc.tar.gz nginx-723e6cc248470b95f62e338cd5e1a6514975f9cc.zip |
nginx-0.1.3-RELEASE importrelease-0.1.3
*) Feature: the ngx_http_autoindex_module and the autoindex directive.
*) Feature: the proxy_set_x_url directive.
*) Bugfix: proxy module may get caught in an endless loop when sendfile
is not used.
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index 8e4e09a3a..390ca431d 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -41,6 +41,7 @@ u_char *ngx_cpystrn(u_char *dst, u_char *src, size_t n) * %[0][width]ui ngx_uint_t * %[0][width]uxi ngx_uint_t in hex * %s null-terminated string + * %c char * %% % * */ @@ -223,6 +224,13 @@ u_char *ngx_sprintf(u_char *buf, char *fmt, ...) continue; + case 'c': + d = va_arg(arg, int); + *buf++ = (u_char) (d & 0xff); + fmt++; + + continue; + case '%': *buf++ = '%'; fmt++; |