[asterisk-commits] oej: branch oej/moremanager r204018 - /team/oej/moremanager/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 29 10:09:45 CDT 2009


Author: oej
Date: Mon Jun 29 10:09:42 2009
New Revision: 204018

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=204018
Log:
Fix some mistakes

Modified:
    team/oej/moremanager/main/manager.c

Modified: team/oej/moremanager/main/manager.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/oej/moremanager/main/manager.c?view=diff&rev=204018&r1=204017&r2=204018
==============================================================================
--- team/oej/moremanager/main/manager.c (original)
+++ team/oej/moremanager/main/manager.c Mon Jun 29 10:09:42 2009
@@ -2234,7 +2234,7 @@
 static int action_coresettings(struct mansession *s, const struct message *m)
 {
 	const char *actionid = astman_get_header(m, "ActionID");
-	char idText[150];
+	char idText[150] = "";
 
         if (!ast_strlen_zero(actionid)) {
                 snprintf(idText, sizeof(idText), "ActionID: %s\r\n", actionid);
@@ -2256,8 +2256,8 @@
 			"CoreHTTPenabled: %s\r\n"
 #endif
 			,
+			idText,
 			AMI_VERSION,
-			idText,
 			ASTERISK_VERSION, 
 			ast_config_AST_SYSTEM_NAME,
 			option_maxcalls,
@@ -2284,7 +2284,7 @@
 static int action_corestatus(struct mansession *s, const struct message *m)
 {
 	const char *actionid = astman_get_header(m, "ActionID");
-	char idText[150];
+	char idText[150] = "";
 	char startuptime[150];
 	char reloadtime[150];
 	struct tm tm;




More information about the asterisk-commits mailing list