1--- src/manfile.c.orig	2006-06-01 17:16:00.000000000 -0700
2+++ src/manfile.c	2006-06-01 17:37:31.000000000 -0700
3@@ -147,10 +147,14 @@
4 static char **
5 glob_for_file (const char *dir, const char *sec, const char *name, int type) {
6      char **names;
7+     char shortsec[2];
8 
9      if (debug >= 2)
10 	 gripe(CALLTRACE2, dir, sec, name, type);
11 
12+     shortsec[0] = sec[0];
13+     shortsec[1] = '\0';
14+
15      if (standards & DO_IRIX) {
16 	  /* try first without `sec' extension */
17 	  /* maybe this should be done only for cat pages? */
18@@ -158,7 +162,7 @@
19      }
20 
21      /* try /usr/X11R6/man/man3x/XSetFont.3x */
22-     names = glob_for_file_ext (dir, sec, name, sec, type);
23+     names = glob_for_file_ext (dir, shortsec, name, sec, type);
24 
25      if (!names)
26 	  return 0;		/* out-of-memory or error */
27