mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 00:55:42 +01:00
arecordmidi2: Fix truncated text in meta data text handling
The current code didn't proceed the text position buffer and the text
was always truncated in 12 bytes. Let's fix it.
Fixes: 74daf3a93a
("arecordmidi2: Add options to put meta data texts")
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
74daf3a93a
commit
33f6870f56
1 changed files with 1 additions and 0 deletions
|
@ -416,6 +416,7 @@ static void write_metadata(FILE *file, unsigned int type, const char *text)
|
||||||
|
|
||||||
fwrite(d.raw, 4, 4, file);
|
fwrite(d.raw, 4, 4, file);
|
||||||
len -= size;
|
len -= size;
|
||||||
|
text += size;
|
||||||
format = SND_UMP_FLEX_DATA_MSG_FORMAT_CONTINUE;
|
format = SND_UMP_FLEX_DATA_MSG_FORMAT_CONTINUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue