summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-09-02 13:19:19 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-09-02 13:19:19 +0000
commitd14f90d4a0bcef7a2c27c759271c1ccc985fa171 (patch)
tree0f0fc61742662bdb603cde448dd6e93db3c89788
parent392cad1a8dbfda836abf7f545e8ad46e100266e7 (diff)
parentf577736a736dae0c5e32b2c3f63101ece9bdf4f8 (diff)
-rw-r--r--tsutils/tsplayer/tsplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tsutils/tsplayer/tsplayer.c b/tsutils/tsplayer/tsplayer.c
index acb968b..e197519 100644
--- a/tsutils/tsplayer/tsplayer.c
+++ b/tsutils/tsplayer/tsplayer.c
@@ -280,7 +280,7 @@ int main(int argc,char *argv[])
{
if (strcmp(argv[index], "-f") == 0)
{
- memcpy(eventFileName, argv[index + 1], strlen(argv[index]));
+ memcpy(eventFileName, argv[index + 1], strlen(argv[index + 1]) + 1);
index++;
}
else if (strcmp(argv[index], "-d") == 0)