Browse Source

small fix

Julius Pfrommer 9 years ago
parent
commit
50f407282e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/networklayer_tcp.c

+ 1 - 1
examples/networklayer_tcp.c

@@ -506,7 +506,7 @@ static UA_StatusCode ClientNetworkLayerGetBuffer(UA_Connection *connection, UA_B
     *buf = *(UA_ByteString*)connection->handle;
     return UA_STATUSCODE_GOOD;
 #else
-    return UA_ByteString_newMembers(buf, minSize);
+    return UA_ByteString_newMembers(buf, connection->remoteConf.recvBufferSize);
 #endif
 }