From 7471b8f614b1c3af3ba71bf684b7551932ea58f2 Mon Sep 17 00:00:00 2001 From: Bart Oldeman Date: Thu, 28 Aug 2003 20:53:21 +0000 Subject: [PATCH] && should be || in check for \, / and : git-svn-id: https://svn.code.sf.net/p/freedos/svn/kernel/trunk@661 6ac86273-5f31-0410-b378-82cca8765d1b --- kernel/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/main.c b/kernel/main.c index e4ece8b..65b23c8 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -507,7 +507,7 @@ BOOL init_device(struct dhdr FAR * dhp, char *cmdLine, COUNT mode, for (p = q = cmdLine; *p && *p != ' ' && *p != '\t'; p++) { - if (*p == '\\' || *p == '/' && *p == ':') + if (*p == '\\' || *p == '/' || *p == ':') q = p + 1; } for (i = 0; i < 8; i++) {