use strlen not sizeof
This commit is contained in:
parent
b25f0f167d
commit
1a35ce3574
@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
//use number to substitute H->getnumSector(), getnumSectors() are not yest implemented
|
//use number to substitute H->getnumSector(), getnumSectors() are not yest implemented
|
||||||
for(off_t i = 0; i < 10; i++) {
|
for(off_t i = 0; i < 10; i++) {
|
||||||
H->rawdisk_write(i*512, buf, sizeof(buf));//Change write_API
|
H->rawdisk_write(i*512, buf, strlen(buf));//Change write_API
|
||||||
}
|
}
|
||||||
//use number to substitute H->getnumSector(), getnumSectors() are not yest implemented
|
//use number to substitute H->getnumSector(), getnumSectors() are not yest implemented
|
||||||
for(off_t i = 0; i < 10; i++) {
|
for(off_t i = 0; i < 10; i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user