From a52e4b70e079601037de557b9a95c07f915f567a Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 20 May 1998 10:00:35 +0000 Subject: [PATCH] Fixed register spec so that colon isn't treated as size separator unless followed by [0-9+-] in order to allow DOS drive specifications. --- bfile/mfile.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bfile/mfile.c b/bfile/mfile.c index c34eec0..342512f 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -4,7 +4,11 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: mfile.c,v $ - * Revision 1.27 1998-02-10 11:55:07 adam + * Revision 1.28 1998-05-20 10:00:35 adam + * Fixed register spec so that colon isn't treated as size separator + * unless followed by [0-9+-] in order to allow DOS drive specifications. + * + * Revision 1.27 1998/02/10 11:55:07 adam * Minor changes. * * Revision 1.26 1997/10/27 14:25:38 adam @@ -130,8 +134,10 @@ static int scan_areadef(MFile_area ma, const char *name, const char *ad) ad++; if (!*ad) break; - while (*ad && *ad != ':') + while (*ad) { + if (*ad == ':' && strchr ("+-0123456789", ad[1])) + break; if (i < FILENAME_MAX) dirname[i++] = *ad; ad++; -- 1.7.10.4