about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-03 14:23:25 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2009-09-03 14:23:25 +0000
commite0c016999132b86f779d2016db3b3402b5f8c13e (patch)
treec2b90a8213cd55e85f162eb408d6bd853ad4a6d9
parent8ae8c24935595cb5fbb6f020092daf61eb87a39b (diff)
downloadnetpbm-mirror-e0c016999132b86f779d2016db3b3402b5f8c13e.tar.gz
netpbm-mirror-e0c016999132b86f779d2016db3b3402b5f8c13e.tar.xz
netpbm-mirror-e0c016999132b86f779d2016db3b3402b5f8c13e.zip
Fix bug: failure to recognize .a meaning static library
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@975 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-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;