makedep: Fixed string comparison against the source tree path

(reported by Kai Blin).
This commit is contained in:
Alexandre Julliard 2007-03-01 15:21:39 +01:00
parent d1331e62ca
commit 4fff18b534
1 changed files with 2 additions and 2 deletions

View File

@ -945,8 +945,8 @@ int main( int argc, char *argv[] )
if (path->name[0] != '/') continue; if (path->name[0] != '/') continue;
if (top_src_dir) if (top_src_dir)
{ {
if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) )) continue; if (!strncmp( path->name, top_src_dir, strlen(top_src_dir) ) &&
if (path->name[strlen(top_src_dir)] == '/') continue; path->name[strlen(top_src_dir)] == '/') continue;
} }
list_remove( &path->entry ); list_remove( &path->entry );
free( path ); free( path );