Fix spiffy decode cursor position issue
diff --git a/src/qcbor_decode.c b/src/qcbor_decode.c
index 8217073..8e8bdc2 100644
--- a/src/qcbor_decode.c
+++ b/src/qcbor_decode.c
@@ -2981,6 +2981,8 @@
QCBORDecodeNesting SaveNesting;
DecodeNesting_PrepareForMapSearch(&(pMe->nesting), &SaveNesting);
+ const size_t uSaveCursor = UsefulInputBuf_Tell(&(pMe->InBuf));
+
/* Reposition to search from the start of the map / array */
RewindMapOrArray(pMe);
@@ -3097,6 +3099,7 @@
Done:
DecodeNesting_RestoreFromMapSearch(&(pMe->nesting), &SaveNesting);
+ UsefulInputBuf_Seek(&(pMe->InBuf), uSaveCursor);
Done2:
/* For all items not found, set the data and label type to QCBOR_TYPE_NONE */