about summary refs log tree commit diff
path: root/buildtools/libopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'buildtools/libopt.c')
-rw-r--r--buildtools/libopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildtools/libopt.c b/buildtools/libopt.c
index e0bfde7e..a0bf1cda 100644
--- a/buildtools/libopt.c
+++ b/buildtools/libopt.c
@@ -310,7 +310,7 @@ parse_filename(const char *  const filename,
         unsigned int prefix_length;
         bool prefix_good;
 
-        if (strcmp(lastdot, "a") == 0)
+        if (strcmp(lastdot + 1, "a") == 0)
             *static_p = TRUE;
         else
             *static_p = FALSE;