Skip to content

Commit

Permalink
fix: voicevox_user_dict_add_wordがスタックを破壊するのを修正 (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip authored Jun 15, 2024
1 parent 264460d commit 7cdea5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/voicevox_core_c_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
})())
Expand Down

0 comments on commit 7cdea5e

Please sign in to comment.