summaryrefslogtreecommitdiffstats
path: root/save-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2014-12-09 19:37:49 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-09 11:10:39 -0700
commit6ef011a0f66ee842e1576a07e7bc61e313c8b3e5 (patch)
tree6369fe1ebc19e76c9b73694c712f82c03b821896 /save-xml.c
parentbae5e7cb172db5844d97bc60327ca87d12890375 (diff)
downloadsubsurface-6ef011a0f66ee842e1576a07e7bc61e313c8b3e5.tar.gz
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>
Diffstat (limited to 'save-xml.c')
-rw-r--r--save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c
index 7a2712949..e4871fbb1 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -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;