From b0fc00694d93f0fa7883fedc7e5418febbf3723b Mon Sep 17 00:00:00 2001
From: Dirk Hohndel <dirk@hohndel.org>
Date: Wed, 10 Jun 2015 13:03:37 -0700
Subject: [PATCH] Add "additional name" to the correct dive site

Adding the name to its own dive site was kind of silly.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
---
 parse-xml.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse-xml.c b/parse-xml.c
index e3938666d..b00ce10a9 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -1267,7 +1267,7 @@ static void add_dive_site(char *ds_name, struct dive *dive)
 					newds->latitude = ds->latitude;
 					newds->longitude = ds->longitude;
 				}
-				ds->notes = add_to_string(ds->notes, translate("gettextFromC", "additional name for site: %s\n"), ds->name);
+				newds->notes = add_to_string(newds->notes, translate("gettextFromC", "additional name for site: %s\n"), ds->name);
 			} else {
 				// add the existing dive site to the current dive
 				fprintf(stderr, "we have an existing location, using {%s}\n", ds->name);