]> git.ipfire.org Git - thirdparty/asterisk.git/commit
FILE: fix retrieval of file contents when offset is specified
authorMatthew Jordan <mjordan@digium.com>
Sat, 14 Mar 2015 01:21:23 +0000 (01:21 +0000)
committerMatthew Jordan <mjordan@digium.com>
Sat, 14 Mar 2015 01:21:23 +0000 (01:21 +0000)
commit37d33ed997132e97e45f7838da84ec5ce6fae9c3
treedeb1f1995dd1aa5479fcd0dc2c498263a5a9ca44
parenta4c27baf47eeeebf3a4e6660065ee9b7c5a0ee31
FILE: fix retrieval of file contents when offset is specified

The loop that reads in a file was not correctly using the offset when
determining what bytes to append to the output. This patch corrects
the logic such that the correct portion of the file is extracted when an
offset is specified.

ASTERISK-21765
Reported by: John Zhong
Tested by: Matt Jordan, Di-Shi Sun
patches:
  file_read_390821.patch uploaded by Di-Shi Sun (License 5076)
........

Merged revisions 432935 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@432938 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_env.c