aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--save-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/save-xml.c b/save-xml.c
index 54a0a8606..227b95296 100644
--- a/save-xml.c
+++ b/save-xml.c
@@ -191,7 +191,7 @@ static void show_location(struct membuffer *b, struct dive *dive)
len += format_location(buffer + len, latitude, longitude);
if (!dive->location) {
- memcpy(buffer + len, "/>\n", 4);
+ memcpy(buffer + len, "/>\n\0", 5);
put_string(b, buffer);
return;
}