diff options
author | delphij <delphij@FreeBSD.org> | 2013-03-14 20:05:49 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2013-03-14 20:05:49 +0000 |
commit | 4824f825377f483e33c726bad073beda774d9f4b (patch) | |
tree | a94f438747fe49587cf876277fe044170e9686a1 | |
parent | 01ed3a9ee0cf067734c929f06c22f7cd38d2ea41 (diff) | |
download | FreeBSD-src-4824f825377f483e33c726bad073beda774d9f4b.zip FreeBSD-src-4824f825377f483e33c726bad073beda774d9f4b.tar.gz |
Correct type for DIOCGSTRIPESIZE. Without this there
would be a stack overflow which will crash the program
later.
PR: bin/176953
Submitted by: r4721 tormail org
MFC after: 3 days
-rw-r--r-- | sbin/recoverdisk/recoverdisk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/recoverdisk/recoverdisk.c b/sbin/recoverdisk/recoverdisk.c index caa8ebd..af0d88e 100644 --- a/sbin/recoverdisk/recoverdisk.c +++ b/sbin/recoverdisk/recoverdisk.c @@ -156,7 +156,7 @@ main(int argc, char * const argv[]) int error, state; u_char *buf; u_int sectorsize; - u_int stripesize; + off_t stripesize; time_t t1, t2; struct stat sb; u_int n, snapshot = 60; |