commit - 102d2e9cce03e15fa001f4ee80862803c430b81a
commit + 709f4c94471b5b910557420ab9bddb677c229100
blob - 35742c81f4888e498a11b7c1bf5f59dd6796b4b3
blob + 4e1bc4b71aae42603160f9476f38c704719ff8f0
--- parse.y
+++ parse.y
| TKEY TSTRING { host->key = ensure_absolute_path($2); }
| TROOT TSTRING { host->dir = ensure_absolute_path($2); }
| TCGI TSTRING {
- host->cgi = $2;
/* drop the starting '/', if any */
- if (*host->cgi == '/')
- host->cgi++;
+ if (*$2 == '/')
+ memmove($2, $2+1, strlen($2));
+ host->cgi = $2;
}
| locopt
;