mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-10 03:35:42 +01:00
arecordmidi: simple coverity fix
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
cf2cc37502
commit
6dc4b1eab5
1 changed files with 1 additions and 1 deletions
|
@ -631,7 +631,7 @@ static void write_file(void)
|
||||||
fwrite("MThd\0\0\0\6", 1, 8, file);
|
fwrite("MThd\0\0\0\6", 1, 8, file);
|
||||||
/* type 0 or 1 */
|
/* type 0 or 1 */
|
||||||
fputc(0, file);
|
fputc(0, file);
|
||||||
fputc(used_tracks > 1, file);
|
fputc(used_tracks > 1 ? 1 : 0, file);
|
||||||
/* number of tracks */
|
/* number of tracks */
|
||||||
fputc((used_tracks >> 8) & 0xff, file);
|
fputc((used_tracks >> 8) & 0xff, file);
|
||||||
fputc(used_tracks & 0xff, file);
|
fputc(used_tracks & 0xff, file);
|
||||||
|
|
Loading…
Reference in a new issue