Commit de4df588 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Use subtraction rather than digittoint since digittoint does not exist on non-BSDs

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2752 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent a375d56f
......@@ -140,7 +140,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re, const char
}
s++;
if (isdigit(*s)) {
x = digittoint(*s);
x = *s - '0';
l = pm[x].rm_eo - pm[x].rm_so;
Tadd(&res, str + pm[x].rm_so, l);
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment