[Asterisk-cvs] asterisk/channels chan_agent.c,1.86,1.87

citats at lists.digium.com citats at lists.digium.com
Sun Oct 24 13:58:53 CDT 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv20601/channels

Modified Files:
	chan_agent.c 
Log Message:
Fix compilation of chan_agent.c on gcc < 3.0

Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -d -r1.86 -r1.87
--- chan_agent.c	24 Oct 2004 13:24:16 -0000	1.86
+++ chan_agent.c	24 Oct 2004 18:02:32 -0000	1.87
@@ -1242,10 +1242,10 @@
 	char *exten = NULL;
 	int play_announcement = 1;
 	char agent_goodbye[AST_MAX_FILENAME_LEN];
-	strcpy(agent_goodbye, agentgoodbye);
 	int update_cdr = updatecdr;
 	char *filename = "agent-loginok";
 	
+	strcpy(agent_goodbye, agentgoodbye);
 	LOCAL_USER_ADD(u);
 
 	/* Parse the arguments XXX Check for failure XXX */




More information about the svn-commits mailing list