X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Finput%2Fwav.c;h=2f01f7d824e1808afb5998175f31c9ffeb3c542f;hb=485a285abea07fa296ee56517cf95b4dbab69e29;hp=271bacef19b9162aed32ab396a347579cbcee87b;hpb=76598cda5465e74e7427b5613f5859f02c2d2ad6;p=libsigrok.git diff --git a/src/input/wav.c b/src/input/wav.c index 271bacef..2f01f7d8 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -17,6 +17,7 @@ * along with this program. If not, see . */ +#include #include #include #include @@ -24,7 +25,7 @@ #include #include #include -#include "libsigrok.h" +#include #include "libsigrok-internal.h" #define LOG_PREFIX "input/wav" @@ -165,8 +166,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;