ossp-pkg/cfg/cfg_syn.c 1.9 -> 1.10
--- cfg_syn.c 2002/07/05 20:49:58 1.9
+++ cfg_syn.c 2002/07/08 13:45:13 1.10
@@ -109,7 +109,15 @@
/* determine first and last positions of token */
cpF = ctx->inputbuf+loc->first;
+ if (cpF < ctx->inputbuf)
+ cpF = ctx->inputbuf;
+ if (cpF > ctx->inputbuf+ctx->inputlen)
+ cpF = ctx->inputbuf+ctx->inputlen;
cpL = ctx->inputbuf+loc->last;
+ if (cpL < ctx->inputbuf)
+ cpL = ctx->inputbuf;
+ if (cpL > ctx->inputbuf+ctx->inputlen)
+ cpL = ctx->inputbuf+ctx->inputlen;
/* determine epilog and prolog of token */
cpP = cpF-4;
|
|