diff options
author | Robert de Bath <rdebath@poboxes.com> | 1999-01-23 13:29:22 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2013-10-23 23:40:39 +0200 |
commit | e62b35169cdcd13632ae353b1e5ffde7dec44201 (patch) | |
tree | 2646548ca84edb365354a6e68459f92943532cee /libc/msdos | |
parent | 2233d47f9d89c107b6c425626d6eb2669363b055 (diff) | |
download | dev86-e62b35169cdcd13632ae353b1e5ffde7dec44201.tar.gz |
Import Dev86src-0.14.7.tar.gzv0.14.7
Diffstat (limited to 'libc/msdos')
-rw-r--r-- | libc/msdos/TODO | 2 | ||||
-rw-r--r-- | libc/msdos/msdos.c | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libc/msdos/TODO b/libc/msdos/TODO index 7d3eb12..f2664a2 100644 --- a/libc/msdos/TODO +++ b/libc/msdos/TODO @@ -1 +1,3 @@ #define remove(x) unlink(x) + +See also the other files, many parts are incomplete. diff --git a/libc/msdos/msdos.c b/libc/msdos/msdos.c index 99e8835..77100ae 100644 --- a/libc/msdos/msdos.c +++ b/libc/msdos/msdos.c @@ -190,8 +190,12 @@ char ** __argv; for(i=0; i<length; i++) /* Copy it in. */ { ptr[i] = __peek_es(0x81+i); +/* Replaced because freedos adds \r to args. if( ptr[i] != ' ' && s == 0 ) { argc++; s=1; } if( ptr[i] == ' ' && s == 1 ) s=0; + */ + if( (ptr[i]&0xE0) != 0 && s == 0 ) { argc++; s=1; } + if( (ptr[i]&0xE0) == 0 && s == 1 ) s=0; } ptr[length]=0; |