summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-01-24 00:29:36 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 12:33:42 +1200
commita4e06bb68eb69ed12142b62807c4d6fd4f65e217 (patch)
tree5aea11016a52caeada7735eeba15adb266ba95be /parse-xml.c
parent87153cefaad9a9bf78fde5a1cf282db02f1894dc (diff)
downloadsubsurface-a4e06bb68eb69ed12142b62807c4d6fd4f65e217.tar.gz
DLF import: Parse CNS value from event to.
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 86d0d9751..ddb4367cb 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2813,7 +2813,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
strcpy(cur_event.name, "HS Up");
break;
case 30:
- strcpy(cur_event.name, "CNS");
+ snprintf(cur_event.name, MAX_EVENT_NAME, "CNS %d%%", ptr[6]);
break;
default:
// No values above 30 had any description