[Freeswitch-trunk] [commit] r6475 - freeswitch/trunk/src/mod/event_handlers/mod_event_socket
Freeswitch SVN
mikej at freeswitch.org
Mon Dec 3 11:06:47 EST 2007
Author: mikej
Date: Mon Dec 3 11:06:47 2007
New Revision: 6475
Modified:
freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
Log:
fix for MODEVENT-2
Modified: freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c
==============================================================================
--- freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c (original)
+++ freeswitch/trunk/src/mod/event_handlers/mod_event_socket/mod_event_socket.c Mon Dec 3 11:06:47 2007
@@ -682,7 +682,12 @@
strip_cr(cmd);
ename = cmd + 9;
- if (*ename == '\r' || *ename == '\n') {
+
+ while (ename && *ename == '\t' || *ename == ' ') {
+ ++ename;
+ }
+
+ if (ename && (*ename == '\r' || *ename == '\n')) {
ename = NULL;
}
More information about the Freeswitch-trunk
mailing list