Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/audio/common need getle16() for ext.sub_tag too
details: https://anonhg.NetBSD.org/src/rev/615af7063dd1
branches: trunk
changeset: 357757:615af7063dd1
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Nov 25 17:18:15 2017 +0000
description:
need getle16() for ext.sub_tag too
PR bin/52762 by Yosuke Sugahara
diffstat:
usr.bin/audio/common/wav.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e8fbae03c9f2 -r 615af7063dd1 usr.bin/audio/common/wav.c
--- a/usr.bin/audio/common/wav.c Sat Nov 25 17:05:52 2017 +0000
+++ b/usr.bin/audio/common/wav.c Sat Nov 25 17:18:15 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wav.c,v 1.13 2015/08/05 06:54:39 mrg Exp $ */
+/* $NetBSD: wav.c,v 1.14 2017/11/25 17:18:15 jdolecek Exp $ */
/*
* Copyright (c) 2002, 2009 Matthew R. Green
@@ -33,7 +33,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: wav.c,v 1.13 2015/08/05 06:54:39 mrg Exp $");
+__RCSID("$NetBSD: wav.c,v 1.14 2017/11/25 17:18:15 jdolecek Exp $");
#endif
@@ -140,7 +140,7 @@
memcpy(&ext, owhere + sizeof fmt, sizeof ext);
if (getle16(ext.len) < sizeof(ext) - sizeof(ext.len))
return (AUDIO_ESHORTHDR);
- fmttag = ext.sub_tag;
+ fmttag = getle16(ext.sub_tag);
if (verbose)
printf("WAVE extensible sub tag: %x\n", fmttag);
}
Home |
Main Index |
Thread Index |
Old Index