]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fix strncasecmp length, thx woof
authorMathieu Rene <mrene@avgs.ca>
Wed, 15 Jul 2009 16:45:12 +0000 (16:45 +0000)
committerMathieu Rene <mrene@avgs.ca>
Wed, 15 Jul 2009 16:45:12 +0000 (16:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14258 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 13433041ba86f04ff6a0c4068699a5a27693997f..cd1960295d138f225730186fb348cc7cb63c1754 100644 (file)
@@ -1801,7 +1801,7 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                } else {
                        switch_snprintf(reply, reply_len, "-ERR not controlling a session");
                }
-       } else if (!strncasecmp(cmd, "nolinger", 6)) {
+       } else if (!strncasecmp(cmd, "nolinger", 8)) {
                if (listener->session) {
                        switch_clear_flag_locked(listener, LFLAG_LINGER);
                        switch_snprintf(reply, reply_len, "+OK will not linger");