aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurfacestartup.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2021-07-20 22:02:34 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-07-23 11:22:43 -0700
commitb18b3119b54083c762f891c1ab98d10f20211482 (patch)
tree362bc58457d19a383a05b1d827d8da41a5e8fe0f /core/subsurfacestartup.h
parent69914964f66f53c4ce413c780b97e52d015538e2 (diff)
downloadsubsurface-b18b3119b54083c762f891c1ab98d10f20211482.tar.gz
cleanup: don't NUL-terminate membuffer in uploadDiveLogsDE
The data of the membuffer is passed as a data/length pair to xmlReadMemory(). There is no point in NUL-terminating it. Moreover, pass the data directly to xmlReadMemory() instead of via variables. These variables are reused later with a different meaning, making this super-confusing. The membuf variable is turned from "const char *" to "char *" to signal that we own the buffer. Amazingly, zip_source_buffer() frees the buffer, even though a "const void *" is passed in. This API is pure madness. Add a comment. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/subsurfacestartup.h')
0 files changed, 0 insertions, 0 deletions