From 9ddef6854e8f54cd8d1431c15ba37c2c18d32ca7 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 15 Sep 2011 07:08:57 -0700 Subject: [PATCH] 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 --- uemis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.45.2