aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-01-30 16:32:44 +0100
committerThomas White <taw@physics.org>2019-01-30 16:33:08 +0100
commit6380e2067398e95f87bc559c12fab027f0287c1d (patch)
tree630b1585ec841a9ac7672b06aaacf3b33b62f3a2 /src
parentc023a320f680ba4e0f7090363dbbf14d8ec7b220 (diff)
Fix read_prefixed_filename()
Diffstat (limited to 'src')
-rw-r--r--src/im-sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index b380c434..2aca49b3 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -206,7 +206,7 @@ static char *read_prefixed_filename(struct get_pattern_ctx *gpctx, char **event)
* space. */
if ( strstr(&line[n], "//") != NULL ) {
line[n] = '\0';
- *event = strdup(&line[n]);
+ *event = strdup(&line[n+1]);
}
} /* else no spaces at all */
}