packages: ocfs2-tools/ocfs2-tools-vla-initializer.patch (NEW) - build fix.

pluto pluto at pld-linux.org
Tue Jul 27 19:16:02 CEST 2010


Author: pluto                        Date: Tue Jul 27 17:16:02 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- build fix.

---- Files affected:
packages/ocfs2-tools:
   ocfs2-tools-vla-initializer.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ocfs2-tools/ocfs2-tools-vla-initializer.patch
diff -u /dev/null packages/ocfs2-tools/ocfs2-tools-vla-initializer.patch:1.1
--- /dev/null	Tue Jul 27 19:16:02 2010
+++ packages/ocfs2-tools/ocfs2-tools-vla-initializer.patch	Tue Jul 27 19:15:56 2010
@@ -0,0 +1,19 @@
+--- ocfs2-tools-1.4.4/mount.ocfs2/mount.ocfs2.c.orig	2009-04-14 00:10:40.000000000 +0200
++++ ocfs2-tools-1.4.4/mount.ocfs2/mount.ocfs2.c	2010-07-27 19:03:39.454928969 +0200
+@@ -261,7 +261,7 @@
+ 	char *extra = NULL;
+ 	int dev_ro = 0;
+ 	char *hbstr = NULL;
+-	char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1] = "";
++	char stackstr[strlen(OCFS2_CLUSTER_STACK_ARG) + OCFS2_STACK_LABEL_LEN + 1];
+ 	ocfs2_filesys *fs = NULL;
+ 	struct o2cb_cluster_desc cluster;
+ 	struct o2cb_region_desc desc;
+@@ -269,6 +269,7 @@
+ 	int hb_started = 0;
+ 	struct stat statbuf;
+ 
++	memset(stackstr, 0, sizeof(stackstr));
+ 	initialize_ocfs_error_table();
+ 	initialize_o2dl_error_table();
+ 	initialize_o2cb_error_table();
================================================================


More information about the pld-cvs-commit mailing list