diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-08-28 14:50:37 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-08-28 14:50:37 +0000 |
commit | b9b14dda5ed0e06c4b6e59512b1289ba81a4e765 (patch) | |
tree | cbb24100541a5e93dadfbddc7d49a97661e339b9 /tsutils/tsplayer/tsplayer.c | |
parent | 81006a03b9014ec482200a7fedb189b97abbff4a (diff) | |
parent | d8258504763972738c53a14dd4bea9a90da8c6fa (diff) |
Merge "Fix index undefined warning" into halibut
Diffstat (limited to 'tsutils/tsplayer/tsplayer.c')
-rw-r--r-- | tsutils/tsplayer/tsplayer.c | 3 |
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)
{
|