diff options
author | rsc <devnull@localhost> | 2005-11-01 15:01:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-11-01 15:01:00 +0000 |
commit | 604ad4d8ff971314f37440963f4ad8e6ea79aacc (patch) | |
tree | 7d67c42a813cf686592836819bfdd50933e6a0f3 /src/libdisk | |
parent | 24d56929770f47314bfbebed9325dd5bcdaa8771 (diff) | |
download | plan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.tar.gz plan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.tar.bz2 plan9port-604ad4d8ff971314f37440963f4ad8e6ea79aacc.zip |
isdigit (Tom Miller)
Diffstat (limited to 'src/libdisk')
-rw-r--r-- | src/libdisk/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libdisk/disk.c b/src/libdisk/disk.c index bb34b650..45836160 100644 --- a/src/libdisk/disk.c +++ b/src/libdisk/disk.c @@ -307,7 +307,7 @@ opendisk(char *disk, int rdonly, int noctl) /* check for floppy(3) disk */ if(strlen(p) >= 7) { q = p+strlen(p)-7; - if(q[0] == 'f' && q[1] == 'd' && isdigit(q[2]) && strcmp(q+3, "disk") == 0) { + if(q[0] == 'f' && q[1] == 'd' && isdigit((uchar)q[2]) && strcmp(q+3, "disk") == 0) { strcpy(q+3, "ctl"); if((d->ctlfd = open(p, ORDWR)) >= 0) { *q = '\0'; |