mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: x.vstring() instead of string(x) (#6102)
This commit is contained in:
@@ -583,7 +583,7 @@ fn readall(conn net.Socket) string {
|
||||
for {
|
||||
n := C.recv(conn.sockfd, buf, 1024, 0)
|
||||
m := conn.crecv(buf, 1024)
|
||||
message += string( byteptr(buf), m )
|
||||
message += unsafe { byteptr(buf).vstring_with_len(m) }
|
||||
if message.len > max_http_post_size { break }
|
||||
if n == m { break }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user