diff --git a/src/fcstr.c b/src/fcstr.c index f56f823..712e23b 100644 --- a/src/fcstr.c +++ b/src/fcstr.c @@ -902,6 +902,9 @@ FcStrCanonAbsoluteFilename (const FcChar8 *s) if (slash) { switch (s - slash) { + case 1: + f -= 1; /* squash // and trim final / from file */ + break; case 2: if (!strncmp ((char *) slash, "/.", 2)) {