blob: f3f86609f2d574e5a24bfe486c66e8b9fa0d5516 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- a/src/server.c
+++ b/src/server.c
@@ -2013,11 +2013,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;
|