From 158d20c2faa5422bd393834e2c24ac486a3d72fe Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Fri, 14 Jun 2024 20:36:24 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20`voicevox=5Fuser=5Fdict=5Fadd=5Fword`?= =?UTF-8?q?=E3=81=8C=E3=82=B9=E3=82=BF=E3=83=83=E3=82=AF=E3=82=92=E7=A0=B4?= =?UTF-8?q?=E5=A3=8A=E3=81=99=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/voicevox_core_c_api/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/voicevox_core_c_api/src/lib.rs b/crates/voicevox_core_c_api/src/lib.rs index 08a54b11a..eb2e4698e 100644 --- a/crates/voicevox_core_c_api/src/lib.rs +++ b/crates/voicevox_core_c_api/src/lib.rs @@ -1161,7 +1161,7 @@ pub unsafe extern "C" fn voicevox_user_dict_add_word( into_result_code_with_error((|| { let word = word.read_unaligned().try_into_word()?; let uuid = user_dict.dict.add_word(word)?; - output_word_uuid.as_ptr().copy_from(uuid.as_bytes(), 16); + output_word_uuid.as_ptr().write_unaligned(uuid.into_bytes()); Ok(()) })())