From 01b5eab38147e84a1cde453059279c5ad7ad2293 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 21 May 2004 16:12:13 +0000 Subject: nginx-0.0.3-2004-05-21-20:12:13 import --- src/core/ngx_string.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/ngx_string.c') diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index fd115cc7e..1e6ee6404 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -88,12 +88,12 @@ ngx_int_t ngx_hextoi(u_char *line, size_t n) } if (ch >= 'A' && ch <= 'F') { - value = value * 16 + (*line - 'A'); + value = value * 16 + (ch - 'A' + 10); continue; } if (ch >= 'a' && ch <= 'f') { - value = value * 16 + (*line - 'a'); + value = value * 16 + (ch - 'a' + 10); continue; } -- cgit