summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/levels.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/levels.c b/src/core/levels.c
index 35a9a7ed..1c526b1a 100644
--- a/src/core/levels.c
+++ b/src/core/levels.c
@@ -66,6 +66,10 @@ int level_get(const char *level)
match = 0;
for (n = 0; levels[n] != NULL; n++) {
if (strncmp(levels[n], level, len) == 0) {
+ if (strlen(levels[n]) == len) {
+ /* full match */
+ return 1L << n;
+ }
if (match > 0) {
/* ambiguous - abort */
return 0;