summaryrefslogtreecommitdiffstats
path: root/worldmap-save.c
diff options
context:
space:
mode:
authorGravatar Venkatesh Shukla <venkatesh.shukla.eee11@iitbhu.ac.in>2014-04-05 21:29:34 +0530
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-05 13:30:16 -0700
commit62e4c4069b517e97660452edd70f65d3cdb15e35 (patch)
treef7172b4481853903948cdfe1c7bf804cbacb017e /worldmap-save.c
parentecc8c1d995be8b55e0a8a77d9676ede79fa22fb4 (diff)
downloadsubsurface-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 'worldmap-save.c')
0 files changed, 0 insertions, 0 deletions