[icinga-checkins] icinga.org: icinga-core/hbaecker/threaded-trimming: fix arraysize of es[] in ndo2db_save_custom_variables

git at icinga.org git at icinga.org
Sun Jan 10 13:39:39 CET 2010


Module: icinga-core
Branch: hbaecker/threaded-trimming
Commit: 2927b7f19d0166d1793226bde46ef2dfa293f505
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=2927b7f19d0166d1793226bde46ef2dfa293f505

Author: Michael Friedrich <michael.friedrich at univie.ac.at>
Date:   Fri Jan  8 18:01:11 2010 +0100

fix arraysize of es[] in ndo2db_save_custom_variables

fixes #219

---

 module/idoutils/src/dbhandlers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index 43c2445..f14e2a2 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -5791,7 +5791,7 @@ int ndo2db_save_custom_variables(ndo2db_idi *idi,int table_idx, int o_id, char *
 	char *buf2=NULL;
 	char *buf3=NULL;
 	ndo2db_mbuf mbuf;
-	char *es[1];
+	char *es[2];
 	char *ptr1=NULL;
 	char *ptr2=NULL;
 	char *ptr3=NULL;





More information about the icinga-checkins mailing list