summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL Peter Deutsch <lpd@ghostscript.com>2000-06-28 05:14:17 +0000
committerL Peter Deutsch <lpd@ghostscript.com>2000-06-28 05:14:17 +0000
commit7ecb889105097c2469330a6151c9d875391681de (patch)
treeadc8f18039e7536b50f1ad0125e67e28986a1be0
parent23bfa383914b64e6cdce6be78ffee38662fa296b (diff)
downloadghostpdl-7ecb889105097c2469330a6151c9d875391681de.tar.gz
Fix: In some cases, two successive DSC comments produced a syntaxerror.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@534 a1074d23-0009-0410-80fe-cf8c14f379e6
-rw-r--r--gs/src/ztoken.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gs/src/ztoken.c b/gs/src/ztoken.c
index 470a8d3c1..368d3b6e7 100644
--- a/gs/src/ztoken.c
+++ b/gs/src/ztoken.c
@@ -222,7 +222,11 @@ again:
case o_push_estack:
return code;
}
- /* falls through */
+ break; /* error */
+ case scan_Comment:
+ case scan_DSC_Comment:
+ return ztoken_handle_comment(i_ctx_p, &fref, pstate, esp + 1, code,
+ save, true, ztokenexec_continue);
default: /* error */
break;
}
@@ -285,7 +289,7 @@ ztoken_handle_comment(i_ctx_t *i_ctx_p, const ref *fop, scanner_state *sstate,
op = osp += 2;
*osp = *ptoken;
}
- osp[-1] = *fop;
+ op[-1] = *fop;
/*
* Push the continuation, scanner state, file, and callout name on the
* e-stack.