summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/plugins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/plugins.c b/src/common/plugins.c
index c6c362de5..2d81548a1 100644
--- a/src/common/plugins.c
+++ b/src/common/plugins.c
@@ -160,8 +160,8 @@ static int plugin_iscompatible(char* version)
if( version == NULL )
return 0;
sscanf(version, "%d.%d", &req_major, &req_minor);
- sscanf(version, "%d.%d", &major, &minor);
- return ( req_major == major || req_minor <= minor );
+ sscanf(PLUGIN_VERSION, "%d.%d", &major, &minor);
+ return ( req_major == major && req_minor <= minor );
}
Plugin* plugin_open(const char* filename)