clean build warning on windows
authorAndy Green <andy@warmcat.com>
Wed, 4 May 2016 03:11:15 +0000 (11:11 +0800)
committerAndy Green <andy@warmcat.com>
Wed, 4 May 2016 03:11:15 +0000 (11:11 +0800)
Signed-off-by: Andy Green <andy@warmcat.com>
lib/context.c

index 90bb8fc..23d218d 100644 (file)
@@ -598,7 +598,8 @@ lws_create_context(struct lws_context_creation_info *info)
 
        if (info->server_string) {
                context->server_string = info->server_string;
-               context->server_string_len = strlen(context->server_string);
+               context->server_string_len = (short)
+                               strlen(context->server_string);
        } else {
                context->server_string = "libwebsockets";
                context->server_string_len = 13;