]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hameg-hmo/protocol.h
hameg-hmo: Fix two compiler warnings (-Wstringop-truncation).
[libsigrok.git] / src / hardware / hameg-hmo / protocol.h
index 2749fb8e7e0c27565d4898dd0ceea2d2984c39b3..af77c6da7e6dc09a0d2486a33809ce5881857270 100644 (file)
@@ -106,7 +106,7 @@ struct scope_state {
 
        int trigger_source;
        int trigger_slope;
-       char trigger_pattern[MAX_ANALOG_CHANNEL_COUNT + MAX_DIGITAL_CHANNEL_COUNT];
+       char trigger_pattern[MAX_ANALOG_CHANNEL_COUNT + MAX_DIGITAL_CHANNEL_COUNT + 1];
 
        gboolean high_resolution;
        gboolean peak_detection;