[asterisk-commits] file: branch 1.6.2 r192737 - in /branches/1.6.2: ./ res/res_clialiases.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed May 6 11:10:22 CDT 2009


Author: file
Date: Wed May  6 11:10:19 2009
New Revision: 192737

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192737
Log:
Merged revisions 192736 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r192736 | file | 2009-05-06 13:09:27 -0300 (Wed, 06 May 2009) | 4 lines
  
  Make the code that prevents an infinite loop from happening into a case insensitive check.
  
  (thanks eliel)
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/res/res_clialiases.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/res/res_clialiases.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/res/res_clialiases.c?view=diff&rev=192737&r1=192736&r2=192737
==============================================================================
--- branches/1.6.2/res/res_clialiases.c (original)
+++ branches/1.6.2/res/res_clialiases.c Wed May  6 11:10:19 2009
@@ -98,7 +98,7 @@
 	case CLI_GENERATE:
 		line = a->line;
 		line += (strlen(alias->alias));
-		if (!strncmp(alias->alias, alias->real_cmd, strlen(alias->alias))) {
+		if (!strncasecmp(alias->alias, alias->real_cmd, strlen(alias->alias))) {
 			generator = NULL;
 		} else if (!ast_strlen_zero(a->word)) {
 			struct ast_str *real_cmd = ast_str_alloca(strlen(alias->real_cmd) + strlen(line) + 1);




More information about the asterisk-commits mailing list