aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_string.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-05-21 16:12:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2004-05-21 16:12:13 +0000
commit01b5eab38147e84a1cde453059279c5ad7ad2293 (patch)
treedc07506d775d943813cd0a384126372cf95e04c8 /src/core/ngx_string.c
parent18684bd5ad9098c67b791ca2943e2f65917b2c2b (diff)
downloadnginx-01b5eab38147e84a1cde453059279c5ad7ad2293.tar.gz
nginx-01b5eab38147e84a1cde453059279c5ad7ad2293.zip
nginx-0.0.3-2004-05-21-20:12:13 import
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r--src/core/ngx_string.c4
1 files changed, 2 insertions, 2 deletions
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;
}