[icinga-checkins] icinga.org: icinga-core/master: Fix unescape bug during tabstobs

git at icinga.org git at icinga.org
Fri Oct 16 11:18:35 CEST 2009


Module: icinga-core
Branch: master
Commit: 1844e0cac69837c0f5bbd0f76ae739d4ad75cf41
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=1844e0cac69837c0f5bbd0f76ae739d4ad75cf41

Author: Hendrik Baecker <andurin at process-zero.de>
Date:   Fri Oct 16 11:18:32 2009 +0200

Fix unescape bug during tabstobs

---

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

diff --git a/Changelog b/Changelog
index 32e0d1f..d2912fd 100644
--- a/Changelog
+++ b/Changelog
@@ -6,6 +6,7 @@ Icinga 0.8.x Change Log
 * idoutils: workaround to handle more than 4k Data which may exceed service outputs incl. long perf_data
 * core init: delete 'su' usage since all previously su touched files were created by the icinga user
 * idoutils: added ssl support
+* idoutils: fix unescape bug during tabstops
 
 0.8.4 - 09/15/2009
 * idoutils: fix failure_prediction_options in tables hosts, services for postgres
diff --git a/module/idoutils/src/io.c b/module/idoutils/src/io.c
index 3f3c722..d32ac55 100644
--- a/module/idoutils/src/io.c
+++ b/module/idoutils/src/io.c
@@ -517,7 +517,7 @@ char *ndo_unescape_buffer(char *buffer){
 	len=(int)strlen(buffer);
 	for(x=0;x<len;x++){
 		if(buffer[x]=='\\'){
-			if(buffer[x+1]=='\t')
+			if(buffer[x+1]=='t')
 				buffer[y++]='\t';
 			else if(buffer[x+1]=='r')
 				buffer[y++]='\r';





More information about the icinga-checkins mailing list