Fix error that caused seek format operations to set max file size to '1' or '0'
authorMatthew Jordan <mjordan@digium.com>
Tue, 17 Apr 2012 18:29:51 +0000 (18:29 +0000)
committerMatthew Jordan <mjordan@digium.com>
Tue, 17 Apr 2012 18:29:51 +0000 (18:29 +0000)
commit70c5ac6635062efe03b51fb6c7afd30c22028be9
tree7cb8be6e923db7822dae1b093fdb252937670553
parent8337ecd38ddf144c645d8d762da3a44e4c740456
Fix error that caused seek format operations to set max file size to '1' or '0'

A very inappropriate placement of a ')' (introduced in r362151) caused the
maximum size of a file to be set as the result of a comparison operation, as
opposed to the result of the ftello operation.  This resulted in seeking being
restricted to the beginning of the file, or 1 byte into the file.  Thanks to
the Asterisk Test Suite for properly freaking out about this on at least one
test.

(issue ASTERISK-19655)
Reported by: Matt Jordan
........

Merged revisions 362304 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 362305 from http://svn.asterisk.org/svn/asterisk/branches/10

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362306 65c4cc65-6c06-0410-ace0-fbb531ad65f3
formats/format_g719.c
formats/format_gsm.c
formats/format_pcm.c
formats/format_siren14.c
formats/format_siren7.c
formats/format_sln.c
formats/format_vox.c
formats/format_wav.c
formats/format_wav_gsm.c