Fix compilation of chan_agent.c on gcc < 3.0
authorJames Golovich <james@gnuinter.net>
Sun, 24 Oct 2004 18:02:32 +0000 (18:02 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 24 Oct 2004 18:02:32 +0000 (18:02 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4085 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_agent.c

index 568d53c..d16677c 100755 (executable)
@@ -1242,10 +1242,10 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
        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 */