mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Don't call strlen() on something we already know the size of
Signed-off-by: Thiago Macieira <thiago@macieira.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
cb39bb5e9c
commit
0a57befb69
1 changed files with 1 additions and 1 deletions
|
@ -165,7 +165,7 @@ static char *prepare_dives_for_divelogs(const bool selected)
|
|||
* transform it to divelogs.de format, finally dumping
|
||||
* the XML into a character buffer.
|
||||
*/
|
||||
doc = xmlReadMemory(membuf, strlen(membuf), "divelog", NULL, 0);
|
||||
xmlDoc *doc = xmlReadMemory(membuf, streamsize, "divelog", NULL, 0);
|
||||
if (!doc) {
|
||||
qDebug() << errPrefix << "xml error";
|
||||
free((void *)membuf);
|
||||
|
|
Loading…
Add table
Reference in a new issue