Quote picture file names when saving XML

Fixes #775

Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Miika Turkia 2014-12-09 19:37:49 +02:00 committed by Dirk Hohndel
parent bae5e7cb17
commit 6ef011a0f6

View file

@ -389,7 +389,7 @@ static void save_dc(struct membuffer *b, struct dive *dive, struct divecomputer
static void save_picture(struct membuffer *b, struct picture *pic)
{
put_string(b, " <picture filename='");
put_string(b, pic->filename);
put_quoted(b, pic->filename, true, false);
put_string(b, "'");
if (pic->offset.seconds) {
int offset = pic->offset.seconds;