summaryrefslogtreecommitdiff
path: root/renderer.c
diff options
context:
space:
mode:
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--;