]> git.pld-linux.org Git - packages/ocfs2-tools.git/commitdiff
- build fix.
authorPaweł Sikora <pluto@pld-linux.org>
Tue, 27 Jul 2010 17:15:56 +0000 (17:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ocfs2-tools-vla-initializer.patch -> 1.1

ocfs2-tools-vla-initializer.patch [new file with mode: 0644]

diff --git a/ocfs2-tools-vla-initializer.patch b/ocfs2-tools-vla-initializer.patch
new file mode 100644 (file)
index 0000000..164272b
--- /dev/null
@@ -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();
This page took 0.070087 seconds and 4 git commands to generate.