diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-01-05 19:16:01 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-01-05 19:16:01 +0000 |
commit | 3728854bc924ad4cfe72d9d83e040a888a715822 (patch) | |
tree | dc70f3c12d1eb6fe608c951c43b4479ecf3da8f1 | |
parent | b69d881eb2555f40795d5d930a84e4a7d7e4b598 (diff) |
Make sure the array is never too small.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@388 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | polyp/oss-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/polyp/oss-util.c b/polyp/oss-util.c index 8c83cbbf..799bc40a 100644 --- a/polyp/oss-util.c +++ b/polyp/oss-util.c @@ -92,7 +92,7 @@ fail: int pa_oss_auto_format(int fd, struct pa_sample_spec *ss) { int format, channels, speed, reqformat; - static const int format_trans[] = { + static const int format_trans[PA_SAMPLE_MAX] = { [PA_SAMPLE_U8] = AFMT_U8, [PA_SAMPLE_ALAW] = AFMT_A_LAW, [PA_SAMPLE_ULAW] = AFMT_MU_LAW, |