From 7cdea5e9150a33d98163150503eb00244adf627e Mon Sep 17 00:00:00 2001 From: Ryo Yamashita Date: Sat, 15 Jun 2024 23:46:11 +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?= =?UTF-8?q?=20(#800)?= 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(()) })())