1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-16 00:00:07 +01:00

Fixed build failure under Linux with GNU 4.8.4

This commit is contained in:
Stephan Eberle 2016-04-26 22:38:42 +02:00 committed by Andy Green
parent 3f41a9de5b
commit f14f7237dc

View file

@ -233,6 +233,9 @@ int lws_http_serve(struct lws *wsi, char *uri, const char *origin)
char path[256], sym[256];
unsigned char *p = (unsigned char *)sym + 32 + LWS_PRE, *start = p;
unsigned char *end = p + sizeof(sym) - 32 - LWS_PRE;
#if !defined(WIN32)
size len;
#endif
int n, spin = 0;
snprintf(path, sizeof(path) - 1, "%s/%s", origin, uri);