From 9d9c706369af38dbd2673155a7047ce196e09e53 Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Sun, 23 May 2010 00:08:55 +0200 Subject: Imported Upstream version 4.0-20090311 --- renderer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'renderer.c') diff --git a/renderer.c b/renderer.c index f003206..48a56aa 100644 --- a/renderer.c +++ b/renderer.c @@ -190,7 +190,7 @@ static int jcl_keywords_equal(const char *jclline1, const char *jclline2, j1 = strstr(jclline1, jclstr); if (!j1) return 0; if (!(p1 = strchr(skip_whitespace(j1), '='))) - p1 = j1[strlen(j1)]; + p1 = j1 + strlen(j1); p1--; while (p1 > j1 && isspace(*p1)) p1--; @@ -198,7 +198,7 @@ static int jcl_keywords_equal(const char *jclline1, const char *jclline2, j2 = strstr(jclline2, jclstr); if (!j2) return 0; if (!(p2 = strchr(skip_whitespace(j2), '='))) - p2 = j2[strlen(j2)]; + p2 = j2 + strlen(j2); p2--; while (p2 > j2 && isspace(*p2)) p2--; -- cgit v1.2.3