From 80a6dd82af16f69d4948a0bb2a1a31a71cafc1ca Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Wed, 30 Apr 2003 15:42:06 +0000 Subject: [PATCH] Fix problem with "truename wildcard." git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@576 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/newstuff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/newstuff.c b/kernel/newstuff.c index 505642c..789bfd1 100644 --- a/kernel/newstuff.c +++ b/kernel/newstuff.c @@ -527,8 +527,9 @@ COUNT truename(const char FAR * src, char * dest, COUNT mode) PATH_ERROR; if (i & PNE_WILDCARD) gotAnyWildcards = TRUE; - } - --src; /* terminator or separator was skipped */ + } + if (*src != '\0') + --src; /* terminator or separator was skipped */ break; } }