--- src/sltermin.c.orig Sun Jul 26 15:57:36 1998 +++ src/sltermin.c Sun Jul 26 15:58:06 1998 @@ -273,7 +273,7 @@ { tidir = Terminfo_Dirs[i]; if ((tidir != NULL) - && (sizeof (file) > strlen (tidir) + 2 + strlen (term))) + && (sizeof (file) > strlen (tidir) + 3 + strlen (term))) { sprintf (file, "%s/%c/%s", tidir, *term, term); if (NULL != (fp = open_terminfo (file, ti)))