[asterisk-commits] file: trunk r192736 - /trunk/res/res_clialiases.c

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


Author: file
Date: Wed May  6 11:09:27 2009
New Revision: 192736

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=192736
Log:
Make the code that prevents an infinite loop from happening into a case insensitive check.

(thanks eliel)

Modified:
    trunk/res/res_clialiases.c

Modified: trunk/res/res_clialiases.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/res/res_clialiases.c?view=diff&rev=192736&r1=192735&r2=192736
==============================================================================
--- trunk/res/res_clialiases.c (original)
+++ trunk/res/res_clialiases.c Wed May  6 11:09:27 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