X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/86b8ecb56ed66e2b604703d4fe47efbc6300cc36..refs/pull/256/head:/common/lfdemod.c

diff --git a/common/lfdemod.c b/common/lfdemod.c
index 8307a890..eb84203e 100644
--- a/common/lfdemod.c
+++ b/common/lfdemod.c
@@ -1703,6 +1703,8 @@ int FDXBdemodBI(uint8_t *dest, size_t *size) {
 
 	uint8_t errChk = preambleSearch(dest, preamble, sizeof(preamble), size, &startIdx);
 	if (errChk == 0) return -2; //preamble not found
+	if (*size != 128) return -3; //wrong size for fdxb
+	//return start position
 	return (int)startIdx;
 }