diff options
author | 2014-04-05 21:29:34 +0530 | |
---|---|---|
committer | 2014-04-05 13:30:16 -0700 | |
commit | 62e4c4069b517e97660452edd70f65d3cdb15e35 (patch) | |
tree | f7172b4481853903948cdfe1c7bf804cbacb017e /dive.h | |
parent | ecc8c1d995be8b55e0a8a77d9676ede79fa22fb4 (diff) | |
download | subsurface-62e4c4069b517e97660452edd70f65d3cdb15e35.tar.gz |
Fix divelogs.de upload error
The order of arguments to fread was incorrect.
In case of arguments "streamsize, 1" the returning value is 1, and
hence due to membuf[streamsize] = 0; line, membuf ends up being one
character long.
Fixed it by exchanging arguments to "1, streamsize". This way,
streamsize has the correct value.
Fixes #483
Signed-off-by: Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>
Acked-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
0 files changed, 0 insertions, 0 deletions