Alexandre Julliard : makedep: Fixed string comparison against the source tree path

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 1 16:27:05 CST 2007


Module: wine
Branch: master
Commit: 4fff18b5349bed42f2a7719407c932b28c11953a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4fff18b5349bed42f2a7719407c932b28c11953a

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Mar  1 15:21:39 2007 +0100

makedep: Fixed string comparison against the source tree path

(reported by Kai Blin).

---

 tools/makedep.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/makedep.c b/tools/makedep.c
index a983e4b..e96cdf6 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -945,8 +945,8 @@ int main( int argc, char *argv[] )
         if (path->name[0] != '/') continue;
         if (top_src_dir)
         {
-            if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) )) continue;
-            if (path->name[strlen(top_src_dir)] == '/') continue;
+            if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) ) &&
+                path->name[strlen(top_src_dir)] == '/') continue;
         }
         list_remove( &path->entry );
         free( path );




More information about the wine-cvs mailing list