diff options
| author | KyleMiles <krm504@nyu.edu> | 2021-05-12 01:54:09 -0400 |
|---|---|---|
| committer | KyleMiles <krm504@nyu.edu> | 2021-05-12 01:54:09 -0400 |
| commit | a6092bdc5025a87bfc1df175a1930bd274e2bf15 (patch) | |
| tree | b343cfdb5ee48fefcaa86978297eabe259c5faec /rust/src | |
| parent | a73d6e7cca0da2b9ec1f31095ab9026a2bcf81fe (diff) | |
Rust API : fix save apis
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/filemetadata.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/filemetadata.rs b/rust/src/filemetadata.rs index 11f8cb98..04344acb 100644 --- a/rust/src/filemetadata.rs +++ b/rust/src/filemetadata.rs @@ -184,7 +184,7 @@ impl FileMetadata { pub fn create_database<S: BnStrCompatible>(&self, filename: S) -> bool { let filename = filename.as_bytes_with_nul(); - let raw = "Raw"; + let raw = "Raw".as_bytes_with_nul(); unsafe { BNCreateDatabase( @@ -196,7 +196,7 @@ impl FileMetadata { } pub fn save_auto_snapshot(&self) -> bool { - let raw = "Raw"; + let raw = "Raw".as_bytes_with_nul(); unsafe { BNSaveAutoSnapshot( BNGetFileViewOfType(self.handle, raw.as_ptr() as *mut _), |
