From e0c016999132b86f779d2016db3b3402b5f8c13e Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 3 Sep 2009 14:23:25 +0000 Subject: 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 --- buildtools/libopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildtools') 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; -- cgit 1.4.1