From 2ad96d47505adea4cbb1916e5d5abec542a90dfe Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Apr 04 2006 14:21:02 +0000 Subject: make array large enough --- diff --git a/vim-7.0-warning.patch b/vim-7.0-warning.patch new file mode 100644 index 0000000..fe738ca --- /dev/null +++ b/vim-7.0-warning.patch @@ -0,0 +1,11 @@ +--- vim70c/src/structs.h.warning1 2006-04-04 15:58:16.000000000 +0200 ++++ vim70c/src/structs.h 2006-04-04 15:58:20.000000000 +0200 +@@ -1082,7 +1082,7 @@ + { + typval_T di_tv; /* type and value of the variable */ + char_u di_flags; /* flags (only used for variable) */ +- char_u di_key[1]; /* key (actually longer!) */ ++ char_u di_key[10]; /* key (actually longer!) */ + }; + + typedef struct dictitem_S dictitem_T; diff --git a/vim.spec b/vim.spec index 417fb4b..2fa1206 100644 --- a/vim.spec +++ b/vim.spec @@ -62,6 +62,7 @@ Patch3006: vim-6.2-rh5.patch Patch3009: vim-6.4-checkhl.patch Patch3010: vim-7.0-fstabsyntax.patch Patch3011: vim-6.4-lib64.patch +Patch3012: vim-7.0-warning.patch Patch3100: vim-selinux.patch @@ -187,6 +188,7 @@ perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk %patch3009 -p1 %patch3010 -p1 %patch3011 -p1 +%patch3012 -p1 %if %{WITH_SELINUX} %patch3100 -p1