mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766)
This commit is contained in:
@ -35,7 +35,7 @@ pub fn (mut con TcpConn) read_line() string {
|
||||
}
|
||||
}
|
||||
bufbp := byteptr(buf)
|
||||
line = tos_clone(bufbp)
|
||||
line = unsafe { tos_clone(bufbp) }
|
||||
if eol_idx > 0 {
|
||||
// At this point, we are sure that recv returned valid data,
|
||||
// that contains *at least* one line.
|
||||
|
Reference in New Issue
Block a user