summaryrefslogtreecommitdiff
path: root/renderer.c
diff options
context:
space:
mode:
authorDidier Raboud <didier@raboud.com>2010-05-23 00:08:55 +0200
committerDidier Raboud <didier@raboud.com>2010-05-23 00:08:55 +0200
commit9d9c706369af38dbd2673155a7047ce196e09e53 (patch)
tree647000310f38d684c4cfb25fb187a5ea3e09aad4 /renderer.c
parent28b11afe093d8a0ed71bdeeffcd3c9f2bd663e15 (diff)
Imported Upstream version 4.0-20090311upstream/4.0-20090311
Diffstat (limited to 'renderer.c')
-rw-r--r--renderer.c4
1 files changed, 2 insertions, 2 deletions
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--;