summaryrefslogtreecommitdiffstats
path: root/uemis.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-15 07:08:57 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-15 08:52:55 -0700
commit9ddef6854e8f54cd8d1431c15ba37c2c18d32ca7 (patch)
tree0861f428bf4e87fc53c330f5e7d50644f66e72f5 /uemis.c
parent518ec33ba3bf9c5e9966ef108c1673223337b0fa (diff)
downloadsubsurface-9ddef6854e8f54cd8d1431c15ba37c2c18d32ca7.tar.gz
Fix incorrect data dereference
This caused incorrect "missing Dive100" messages when importing SDA file from the uemis Zurich. Signed-off-by: Dirk Hohndel <dirk@hohndel.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'uemis.c')
-rw-r--r--uemis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uemis.c b/uemis.c
index 63541353b..7f431cba6 100644
--- a/uemis.c
+++ b/uemis.c
@@ -155,7 +155,7 @@ int uemis_convert_base64(char *base64, uint8_t **data) {
}
decode(base64, *data, len);
- if (memcmp(data,"Dive\01\00\00",7))
+ if (memcmp(*data,"Dive\01\00\00",7))
fprintf(stderr,"Missing Dive100 header\n");
bail: