Commit bd0ca510 authored by Alexandre Julliard's avatar Alexandre Julliard

makedep: Fix parsing of man page section.

parent 60226a01
......@@ -1132,9 +1132,9 @@ static void parse_in_file( struct file *source, FILE *file )
{
if (strncmp( buffer, ".TH", 3 )) continue;
p = skip_spaces( buffer + 3 );
while (*p && *p != ' ' && *p != '\t') p++; /* program name */
p = skip_spaces( p );
if (*p) source->args = xstrdup( p ); /* man section */
if (!(p = strtok( p, " \t" ))) continue; /* program name */
if (!(p = strtok( NULL, " \t" ))) continue; /* man section */
source->args = xstrdup( p );
return;
}
}
......
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