replace fixed sizes with sizeof when passing string length since size wasn't always...
[blender.git] / source / blender / blenkernel / intern / writeframeserver.c
index ae65b913283adcaae41a6942ff24ccaab2ce7bf5..df908aaa00617f87cef5dd72dddc38f305268962 100644 (file)
@@ -310,7 +310,7 @@ int frameserver_loop(RenderData *rd, ReportList *UNUSED(reports))
                }
        }
 
-       len = recv(connsock, buf, 4095, 0);
+       len = recv(connsock, buf, sizeof(buf) - 1, 0);
 
        if (len < 0) {
                return -1;