From 276b55eb6e4308cfaf6b18b457f514b2f9409cc5 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 15 Jan 2011 03:00:15 +0100 Subject: Bugfix: Use only .py decoders, ignore .pyc files. --- decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2