summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/drv/cdirgb.c2
-rw-r--r--src/sim/sim_text.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drv/cdirgb.c b/src/drv/cdirgb.c
index 2666a5a..7f6f64b 100644
--- a/src/drv/cdirgb.c
+++ b/src/drv/cdirgb.c
@@ -493,7 +493,7 @@ static void irgbClipText(cdCtxCanvas *ctxcanvas, int x, int y, const char *s, in
slot = face->glyph;
/* move the reference point to the baseline-left */
- simGetPenPos(simulation->canvas, x, y, s, strlen(s), &matrix, &pen);
+ simGetPenPos(simulation->canvas, x, y, s, len, &matrix, &pen);
while(i<len)
{
diff --git a/src/sim/sim_text.c b/src/sim/sim_text.c
index afc7cde..05789b1 100644
--- a/src/sim/sim_text.c
+++ b/src/sim/sim_text.c
@@ -386,7 +386,7 @@ void cdtextSIM(cdCtxCanvas* ctxcanvas, int x, int y, const char* s, int len)
y = _cdInvertYAxis(canvas, y); /* y is already inverted, invert back to cartesian space */
/* move the reference point to the baseline-left */
- simGetPenPos(simulation->canvas, x, y, s, strlen(s), &matrix, &pen);
+ simGetPenPos(simulation->canvas, x, y, s, len, &matrix, &pen);
while(i<len)
{