diff options
author | Maximilian Güntner <maximilian.guentner@gmail.com> | 2013-11-15 01:39:01 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-15 13:14:23 +0900 |
commit | 80532a685adc518446504997bc89129e76a7651a (patch) | |
tree | c00579bbb99b4b1aac205b3db2bf1f17dd7683db | |
parent | 17fbb6b17f6a417f3178286225ce12cda49b36d9 (diff) | |
download | subsurface-80532a685adc518446504997bc89129e76a7651a.tar.gz |
Escape all problematic characters when saving a tag
Signed-off-by: Maximilian Güntner <maximilian.guentner@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | save-xml.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/save-xml.c b/save-xml.c index 5b0ef42ec..d16b16daf 100644 --- a/save-xml.c +++ b/save-xml.c @@ -406,9 +406,9 @@ static void save_tags(FILE *f, struct tag_entry *tag_list) fprintf(f, ", "); /* If the tag has been translated, write the source to the xml file */ if (tmp->tag->source != NULL) - fprintf(f, "%s", tmp->tag->source); + quote(f, tmp->tag->source, 0); else - fprintf(f, "%s", tmp->tag->name); + quote(f, tmp->tag->name, 0); tmp = tmp->next; more = 1; } |