Skip to content

Commit ca43d7d

Browse files
committed
Use cstring_to_vstring instead of .vstring()
1 parent 896e3a1 commit ca43d7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vwebui.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ pub mut:
131131
bool bool
132132
}
133133
pub fn (e &CEvent) get () WebuiResponseData {
134-
str := unsafe { C.webui_get_string(e).vstring() }
134+
str := unsafe { cstring_to_vstring(C.webui_get_string(e)) }
135135
return WebuiResponseData {
136136
string: str
137137
int: str.int()
@@ -269,4 +269,4 @@ pub fn new_window_by_id(win_id u64) Window {
269269

270270
pub fn new_id() u64 {
271271
return C.webui_get_new_window_id()
272-
}
272+
}

0 commit comments

Comments
 (0)