summaryrefslogtreecommitdiff
path: root/decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'decode.c')
-rw-r--r--decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/decode.c b/decode.c
index 7125d32..598b2ba 100644
--- a/decode.c
+++ b/decode.c
@@ -60,7 +60,7 @@ int sigrokdecode_init(void)
return SIGROKDECODE_ERR_DECODERS_DIR;
while ((dp = readdir(dir)) != NULL) {
- if (!strstr(dp->d_name, ".py"))
+ if (!g_str_has_suffix(dp->d_name, ".py"))
continue;
if ((tmp = strdup(dp->d_name)))
list_pds = g_slist_append(list_pds, tmp);