[icinga-checkins] icinga.org: icinga-core/fix/illegal-output-char-4211: core: fix bug with non-ASCII (> 127) illegal macro output characters on char-to-int cast

git at icinga.org git at icinga.org
Mon Jun 3 21:02:44 CEST 2013


Module: icinga-core
Branch: fix/illegal-output-char-4211
Commit: d88570ef357c051efc236a475e2959f7350bd9a6
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=d88570ef357c051efc236a475e2959f7350bd9a6

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Jun  3 21:02:02 2013 +0200

core: fix bug with non-ASCII (> 127) illegal macro output characters on char-to-int cast

fixes #4211

---

 Changelog     |    6 ++++++
 base/config.c |    2 +-
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index 55c5b30..8fbc502 100644
--- a/Changelog
+++ b/Changelog
@@ -13,6 +13,12 @@ UPGRADE NOTES
 	- idoutils: ${source}/module/idoutils/config/updates
 * package locations may differ!
 
+1.9.2 - XX/06/2013
+
+FIXES
+* core: fix bug with non-ASCII (> 127) illegal macro output characters on char-to-int cast (Jason Young) #4211 - MF
+
+
 1.9.1 - 22/05/2013
 
 FIXES
diff --git a/base/config.c b/base/config.c
index f4ca0b1..6217b30 100644
--- a/base/config.c
+++ b/base/config.c
@@ -1832,7 +1832,7 @@ int pre_flight_check(void) {
 	else {
 		char *p;
 		for (p = illegal_output_chars; *p; p++) {
-			illegal_output_char_map[(int)*p] = 1;
+			illegal_output_char_map[(unsigned char)*p] = 1;
 		}
 	}
 





More information about the icinga-checkins mailing list