From 11361f69a45f83b0c60fda9094b76978790d5497 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 2 Sep 2010 16:39:10 -0500 Subject: [PATCH] hex vs. dec, strip space in switch_strip_whitespace --- src/switch_utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_utils.c b/src/switch_utils.c index d7c5d6b6d4..91b78f7bbb 100644 --- a/src/switch_utils.c +++ b/src/switch_utils.c @@ -724,7 +724,7 @@ SWITCH_DECLARE(char *) switch_strip_whitespace(const char *str) if (!sp) return NULL; - while ((*sp == 13 ) || (*sp == 10 ) || (*sp == 9 ) || (*sp == 20) || (*sp == 11) ) { + while ((*sp == 13 ) || (*sp == 10 ) || (*sp == 9 ) || (*sp == 32) || (*sp == 11) ) { sp++; } @@ -735,7 +735,7 @@ SWITCH_DECLARE(char *) switch_strip_whitespace(const char *str) p = s + (strlen(s) - 1); - while ((*p == 13 ) || (*p == 10 ) || (*p == 9 ) || (*p == 20) || (*p == 11) ) { + while ((*p == 13 ) || (*p == 10 ) || (*p == 9 ) || (*p == 32) || (*p == 11) ) { *p-- = '\0'; }