summaryrefslogtreecommitdiffstats
path: root/dos/argv.c
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-19 00:25:14 +0000
committerhpa <hpa>2004-12-19 00:25:14 +0000
commitb544013ca57aea35b878e380de19c22ac1abb40e (patch)
treecf3f7ccadc1bddbb73c778441a8bdf5020ff6159 /dos/argv.c
parentfc50ce2dd9f4de675605169495a980426fb97181 (diff)
downloadsyslinux-b544013ca57aea35b878e380de19c22ac1abb40e.tar.gz
syslinux-b544013ca57aea35b878e380de19c22ac1abb40e.tar.xz
syslinux-b544013ca57aea35b878e380de19c22ac1abb40e.zip
Beef up the sanity checking of the boot sector. For really better checking
we should be checking the FAT for the media signature, too.
Diffstat (limited to 'dos/argv.c')
-rw-r--r--dos/argv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dos/argv.c b/dos/argv.c
index 5535331a..4c835896 100644
--- a/dos/argv.c
+++ b/dos/argv.c
@@ -73,13 +73,13 @@ int __parse_argv(char ***argv, const char *str)
if ( ! *p )
break;
}
- q--; /* Point to final null */
/* Now create argv */
arg = ALIGN_UP(q,char *);
*argv = arg;
*arg++ = mem; /* argv[0] */
+ q--; /* Point q to final null */
for ( r = mem ; r < q ; r++ ) {
if ( *r == '\0' ) {
*arg++ = r+1;