aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-22 02:21:15 +0000
committerhpa <hpa>2004-12-22 02:21:15 +0000
commit29cfb114e2fd9a748ba92df04c6c958088ab49a1 (patch)
treead4ec90222e6bb6e6bde47fc6f99cd7fe8ae6fd5 /win32
parent631a8351b88ce61ea49fd67bd7a797be56b7364a (diff)
downloadsyslinux.git-29cfb114e2fd9a748ba92df04c6c958088ab49a1.tar.gz
syslinux.git-29cfb114e2fd9a748ba92df04c6c958088ab49a1.tar.xz
syslinux.git-29cfb114e2fd9a748ba92df04c6c958088ab49a1.zip
Be more picky about syntax.
Diffstat (limited to 'win32')
-rw-r--r--win32/syslinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/syslinux.c b/win32/syslinux.c
index 37b2ff88..53fb3621 100644
--- a/win32/syslinux.c
+++ b/win32/syslinux.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
}
}
- if ( !drive )
+ if ( !drive || !isalpha(drive[0]) || drive[1] != ':' || drive[2] )
usage();
/* Test if drive exists */