summaryrefslogtreecommitdiffstats
path: root/tsutils
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-08-28 14:50:37 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-08-28 14:50:37 +0000
commitb9b14dda5ed0e06c4b6e59512b1289ba81a4e765 (patch)
treecbb24100541a5e93dadfbddc7d49a97661e339b9 /tsutils
parent81006a03b9014ec482200a7fedb189b97abbff4a (diff)
parentd8258504763972738c53a14dd4bea9a90da8c6fa (diff)
Merge "Fix index undefined warning" into halibut
Diffstat (limited to 'tsutils')
-rw-r--r--tsutils/tsplayer/tsplayer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tsutils/tsplayer/tsplayer.c b/tsutils/tsplayer/tsplayer.c
index f0ab6f7..acb968b 100644
--- a/tsutils/tsplayer/tsplayer.c
+++ b/tsutils/tsplayer/tsplayer.c
@@ -280,7 +280,8 @@ int main(int argc,char *argv[])
{
if (strcmp(argv[index], "-f") == 0)
{
- memcpy(eventFileName, argv[++index], strlen(argv[index]));
+ memcpy(eventFileName, argv[index + 1], strlen(argv[index]));
+ index++;
}
else if (strcmp(argv[index], "-d") == 0)
{