Commit 4fff18b5 authored by Alexandre Julliard's avatar Alexandre Julliard

makedep: Fixed string comparison against the source tree path

(reported by Kai Blin).
parent d1331e62
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment