Skip to content

Commit

Permalink
arecordmidi2: Fix truncated text in meta data text handling
Browse files Browse the repository at this point in the history
The current code didn't proceed the text position buffer and the text
was always truncated in 12 bytes.  Let's fix it.

Fixes: 74daf3a ("arecordmidi2: Add options to put meta data texts")
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jul 11, 2024
1 parent 74daf3a commit 33f6870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions seq/aplaymidi2/arecordmidi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ static void write_metadata(FILE *file, unsigned int type, const char *text)

fwrite(d.raw, 4, 4, file);
len -= size;
text += size;
format = SND_UMP_FLEX_DATA_MSG_FORMAT_CONTINUE;
}
}
Expand Down

0 comments on commit 33f6870

Please sign in to comment.