]> sigrok.org Git - libsigrok.git/blobdiff - src/input/wav.c
Build: Set local include directories in Makefile.am
[libsigrok.git] / src / input / wav.c
index 271bacef19b9162aed32ab396a347579cbcee87b..f2d5db0dfcc21075293c3d9350573aff820410e8 100644 (file)
@@ -24,7 +24,7 @@
 #include <ctype.h>
 #include <string.h>
 #include <stdint.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "input/wav"
@@ -165,8 +165,7 @@ static int find_data_chunk(GString *buf, int initial_offset)
                        /* Skip into the samples. */
                        return offset + 8;
                for (i = 0; i < 4; i++) {
-                       if (!isalpha(buf->str[offset + i])
-                                       && !isascii(buf->str[offset + i])
+                       if (!isalnum(buf->str[offset + i])
                                        && !isblank(buf->str[offset + i]))
                                /* Doesn't look like a chunk ID. */
                                return -1;