summaryrefslogtreecommitdiff
path: root/src/cairo-ps-surface.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-06-30 23:00:39 +0200
committerCarl Worth <cworth@cworth.org>2006-06-30 23:00:39 +0200
commitc6c943f3cfefa535e6c2da6adcac15507a8f0952 (patch)
tree9572862f7a36b9361e598d03076c3575c66269a7 /src/cairo-ps-surface.c
parent0853ccd05314d618afd0d640a33f0a744842a0d2 (diff)
ps: Fix to not walk off the end of the data array.
This fixes a bug recently introduced with the special case for the ~> sequence.
Diffstat (limited to 'src/cairo-ps-surface.c')
-rw-r--r--src/cairo-ps-surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c
index f9a80f47d..3856aa231 100644
--- a/src/cairo-ps-surface.c
+++ b/src/cairo-ps-surface.c
@@ -1398,6 +1398,7 @@ _string_array_stream_write (cairo_output_stream_t *base,
_cairo_output_stream_write (stream->output, &c, 1);
stream->column++;
stream->string_size++;
+ length--;
c = *data++;
break;
}