[Freeswitch-svn] [commit] r8793 - freeswitch/trunk/src

Freeswitch SVN mikej at freeswitch.org
Tue Jun 10 18:55:39 EDT 2008


Author: mikej
Date: Tue Jun 10 18:55:38 2008
New Revision: 8793

Modified:
   freeswitch/trunk/src/switch_channel.c

Log:
signed/unsigned compare

Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c	(original)
+++ freeswitch/trunk/src/switch_channel.c	Tue Jun 10 18:55:38 2008
@@ -1751,7 +1751,7 @@
 						}
 
 						if (offset >= 0) {
-							if (offset > strlen(sub_val)) {
+							if ((size_t)offset > strlen(sub_val)) {
 								*sub_val = '\0';
 							} else {
 								sub_val += offset;



More information about the Freeswitch-svn mailing list