yelp/yelp-2.18.1-posix-man.patch
2007-04-19 02:54:20 +00:00

17 lines
600 B
Diff

--- yelp-2.18.1/src/yelp-utils.c.posix-man 2007-04-18 12:51:28.000000000 -0400
+++ yelp-2.18.1/src/yelp-utils.c 2007-04-18 12:51:32.000000000 -0400
@@ -807,8 +807,11 @@
if ((cur = strchr (path, ')')))
man_num = g_strndup (path, cur - path);
if (man_num[0]) {
- man_dir = g_new (gchar, 5);
- g_snprintf (man_dir, 5, "man%c", man_num[0]);
+ man_dir = g_new (gchar, 6);
+ if (man_num[1] == 'p')
+ g_snprintf (man_dir, 6, "man%cp", man_num[0]);
+ else
+ g_snprintf (man_dir, 5, "man%c", man_num[0]);
}
} else {
man_name = g_strdup (path);