svn commit: r248279 - head/sbin/recoverdisk
Xin LI
delphij at FreeBSD.org
Thu Mar 14 20:05:50 UTC 2013
Author: delphij
Date: Thu Mar 14 20:05:49 2013
New Revision: 248279
URL: http://svnweb.freebsd.org/changeset/base/248279
Log:
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
Modified:
head/sbin/recoverdisk/recoverdisk.c
Modified: head/sbin/recoverdisk/recoverdisk.c
==============================================================================
--- head/sbin/recoverdisk/recoverdisk.c Thu Mar 14 19:56:21 2013 (r248278)
+++ head/sbin/recoverdisk/recoverdisk.c Thu Mar 14 20:05:49 2013 (r248279)
@@ -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;
More information about the svn-src-head
mailing list