mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 15:21:47 +00:00
fix(coverity): use xstrndup() instead of vim_strsave() (#18363)
This commit is contained in:
@@ -261,7 +261,7 @@ static void ui_set_option(UI *ui, bool init, String name, Object value, Error *e
|
||||
api_set_error(error, kErrorTypeValidation, "term_name must be a String");
|
||||
return;
|
||||
}
|
||||
set_tty_option("term", xstrdup(value.data.string.data));
|
||||
set_tty_option("term", string_to_cstr(value.data.string));
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user