[svn-commits] russell: trunk r85562 - in /trunk: ./ include/asterisk/strings.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Oct 15 11:36:49 CDT 2007


Author: russell
Date: Mon Oct 15 11:36:48 2007
New Revision: 85562

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85562
Log:
Merged revisions 85561 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85561 | russell | 2007-10-15 11:34:13 -0500 (Mon, 15 Oct 2007) | 4 lines

Make a few changes so that characters in the upper half of the ISO-8859-1
character set don't get stripped when reading configuration.
(closes issue #10982, dandre)

........

Modified:
    trunk/   (props changed)
    trunk/include/asterisk/strings.h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/include/asterisk/strings.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/strings.h?view=diff&rev=85562&r1=85561&r2=85562
==============================================================================
--- trunk/include/asterisk/strings.h (original)
+++ trunk/include/asterisk/strings.h Mon Oct 15 11:36:48 2007
@@ -54,7 +54,7 @@
 AST_INLINE_API(
 char *ast_skip_blanks(const char *str),
 {
-	while (*str && *str < 33)
+	while (*str && ((unsigned char) *str) < 33)
 		str++;
 	return (char *)str;
 }
@@ -79,7 +79,7 @@
 		   actually set anything unless we must, and it's easier just
 		   to set each position to \0 than to keep track of a variable
 		   for it */
-		while ((work >= str) && *work < 33)
+		while ((work >= str) && ((unsigned char) *work) < 33)
 			*(work--) = '\0';
 	}
 	return str;
@@ -95,7 +95,7 @@
 AST_INLINE_API(
 char *ast_skip_nonblanks(char *str),
 {
-	while (*str && *str > 32)
+	while (*str && ((unsigned char) *str) > 32)
 		str++;
 	return str;
 }




More information about the svn-commits mailing list