]> sigrok.org Git - libsigrok.git/blobdiff - hardware/openbench-logic-sniffer/ols.h
Prevent reading past end of OLS hardware buffer.
[libsigrok.git] / hardware / openbench-logic-sniffer / ols.h
index e6afd0e08e38ffd2957f6898cad8ba88ba102cae..2cdf42c1ba8852410c9e062c3a16912aa4f84df6 100644 (file)
@@ -82,6 +82,7 @@ struct ols_device {
        int num_stages;
 
        unsigned int num_transfers;
+       unsigned int num_samples;
        int num_bytes;
        char last_sample[4];
        unsigned char sample[4];