diff options
author | Rob Landley | 2006-01-22 23:17:18 +0000 |
---|---|---|
committer | Rob Landley | 2006-01-22 23:17:18 +0000 |
commit | b70ccd9509ff4b49b4369b5ebda14bc9632036c8 (patch) | |
tree | a9639ce9f5b572a061e9cbef5638ce9697680ce4 /libbb/loop.c | |
parent | e927743bb022996e9f5c75d3ef20696fc5049dbf (diff) | |
download | busybox-b70ccd9509ff4b49b4369b5ebda14bc9632036c8.zip busybox-b70ccd9509ff4b49b4369b5ebda14bc9632036c8.tar.gz |
Close bug 644: loop incrementing twice, skipping ever other device.
Diffstat (limited to 'libbb/loop.c')
-rw-r--r-- | libbb/loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/loop.c b/libbb/loop.c index 85aa372..6c3144a 100644 --- a/libbb/loop.c +++ b/libbb/loop.c @@ -98,7 +98,7 @@ int set_loop(char **device, const char *file, int offset) /* Find a loop device. */ try=*device ? : dev; for(i=0;rc;i++) { - sprintf(dev, LOOP_FORMAT, i++); + sprintf(dev, LOOP_FORMAT, i); /* Ran out of block devices, return failure. */ if(stat(try, &statbuf) || !S_ISBLK(statbuf.st_mode)) { rc=ENOENT; |