]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Fix incorrect data dereference
authorDirk Hohndel <dirk@hohndel.org>
Thu, 15 Sep 2011 14:08:57 +0000 (07:08 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 15:52:55 +0000 (08:52 -0700)
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>
uemis.c

diff --git a/uemis.c b/uemis.c
index 63541353b0b09ef2ccbc655cc8b55ec8a89cd5f2..7f431cba6b82e2599e5abb21a010a3082ca28237 100644 (file)
--- 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: