You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 lines
491 B

--- a/src/server.c
+++ b/src/server.c
@@ -2006,11 +2006,8 @@ static void dispatch_method(lo_server s, const char *path,
tmp = (char*) malloc(strlen(it->path + len) + 1);
strcpy(tmp, it->path + len);
-#if defined(WIN32) || defined(_MSC_VER)
sec = strchr(tmp, '/');
-#else
- sec = index(tmp, '/');
-#endif
+
if (sec)
*sec = '\0';
slend = sl;