[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/gfs2/mkfs main_jadd.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Changes by:	adas sourceware org	2006-09-28 16:23:57

Modified files:
	gfs2/mkfs      : main_jadd.c 

Log message:
	memory violation

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/gfs2/mkfs/main_jadd.c.diff?cvsroot=cluster&r1=1.8&r2=1.9

--- cluster/gfs2/mkfs/main_jadd.c	2006/08/30 18:32:36	1.8
+++ cluster/gfs2/mkfs/main_jadd.c	2006/09/28 16:23:57	1.9
@@ -373,7 +373,7 @@
 			sdp->device_name, strerror(errno));
 	}
 	do_lseek(fd, 0x10 * 4096);
-	do_read(fd, buf, 4096);
+	do_read(fd, buf, PATH_MAX);
 	gfs2_sb_in(&(sdp->sd_sb), buf);
 	sdp->bsize = sdp->sd_sb.sb_bsize;
 	strcpy(lock_table,sdp->sd_sb.sb_locktable);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]