aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dos/syslinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dos/syslinux.c b/dos/syslinux.c
index e4066ca5..77742120 100644
--- a/dos/syslinux.c
+++ b/dos/syslinux.c
@@ -519,8 +519,8 @@ int main(int argc, char *argv[])
set_active = 1;
break;
case 'd':
- if ( opt[1] )
- subdir = ++opt;
+ if ( argp[1] )
+ subdir = *++argp;
break;
default:
usage();