summaryrefslogtreecommitdiffstats
path: root/src/msdos.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:13:14 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:13:14 +0200
commit9d0ddd4ce3471d1f8c15845684df8c19b4876c7c (patch)
treef64678a1ce0a61b7847b980377d3b441704e89e6 /src/msdos.c
parent8a36ff31fdfeee2ddbb3004f9157de7c3dbb42e4 (diff)
Limit the scope of several variables
Diffstat (limited to 'src/msdos.c')
-rw-r--r--src/msdos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 5e85c1f..7d53f93 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -457,12 +457,12 @@ static int disk_pread_aux(disk_t *disk_car, void *buf, const unsigned int count,
return -1;
}
{
- unsigned int read_size;
uint64_t read_offset=0;
do
{
int i=0;
int rc;
+ unsigned int read_size;
read_size=count-read_offset>16*512?16*512:count-read_offset;
do
{