diff options
-rw-r--r-- | tools/ipodpatcher/ipodio-posix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/ipodpatcher/ipodio-posix.c b/tools/ipodpatcher/ipodio-posix.c index 7035bf2322..dd0a2b041b 100644 --- a/tools/ipodpatcher/ipodio-posix.c +++ b/tools/ipodpatcher/ipodio-posix.c @@ -56,7 +56,8 @@ int ipod_open(HANDLE* dh, char* diskname, int* sector_size) } if(ioctl(*dh,IPOD_SECTORSIZE_IOCTL,sector_size) < 0) { - fprintf(stderr,"[ERR] ioctl() call to get sector size failed\n"); + *sector_size=512; + fprintf(stderr,"[ERR] ioctl() call to get sector size failed, defaulting to %d\n",*sector_size); } return 0; } |