From: Paweł Sikora Date: Tue, 27 Jul 2010 17:15:56 +0000 (+0000) Subject: - build fix. X-Git-Tag: auto/th/ocfs2-tools-1_4_4-1~4 X-Git-Url: http://git.pld-linux.org/?p=packages%2Focfs2-tools.git;a=commitdiff_plain;h=f6cc6b8e0b1383df5e8634cfef3ed6a9d7e5793e - build fix. Changed files: ocfs2-tools-vla-initializer.patch -> 1.1 --- diff --git a/ocfs2-tools-vla-initializer.patch b/ocfs2-tools-vla-initializer.patch new file mode 100644 index 0000000..164272b --- /dev/null +++ b/ocfs2-tools-vla-initializer.patch @@ -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();