From: Dirk Hohndel Date: Thu, 15 Sep 2011 14:08:57 +0000 (-0700) Subject: Fix incorrect data dereference X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9ddef6854e8f54cd8d1431c15ba37c2c18d32ca7;p=ext%2Fsubsurface.git Fix incorrect data dereference This caused incorrect "missing Dive100" messages when importing SDA file from the uemis Zurich. Signed-off-by: Dirk Hohndel Signed-off-by: Linus Torvalds --- diff --git a/uemis.c b/uemis.c index 6354135..7f431cb 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: