From de719816ace92edf1848bda99b13f95bde86768e Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 19 Oct 2008 23:31:24 +0000 Subject: [PATCH] fix windows build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10070 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../mod_event_socket/mod_event_socket.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c index dcf347bedf..480a878d16 100644 --- a/src/mod/event_handlers/mod_event_socket/mod_event_socket.c +++ b/src/mod/event_handlers/mod_event_socket/mod_event_socket.c @@ -620,14 +620,14 @@ static switch_status_t read_packet(listener_t *listener, switch_event_t **event, } if (listener->sock) { - char buf[512] = ""; + char content_buf[512] = ""; const char message[] = "Disconnected, goodbye!\nSee you at ClueCon http://www.cluecon.com!\n"; - int mlen = strlen(message); + int message_len = strlen(message); - switch_snprintf(buf, sizeof(buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", mlen); - len = strlen(buf); - switch_socket_send(listener->sock, buf, &len); - len = mlen; + switch_snprintf(content_buf, sizeof(content_buf), "Content-Type: text/disconnect-notice\nContent-Length %d\n\n", message_len); + len = strlen(content_buf); + switch_socket_send(listener->sock, content_buf, &len); + len = message_len; switch_socket_send(listener->sock, message, &len); }