proxmox/proxmox-sys
Thomas Lamprecht daff73bdd6 sys: use correct pointer type for mkdtemp return value
The libc function mkdtemp takes a C char pointer while we previously
cast our OSString buffer as i8 pointer, but that's not valid on
platforms like AArch64 (ARM), where char is equivalent with a u8.

Fix that by using the c_char type that was explicitly made to always
get the correct, platform-independent type for C chars when doing FFI.

This was reported by OJaksch on our Arch Linux User Repo (AUR) package
[0].

https://aur.archlinux.org/packages/proxmox-backup-client#comment-1006851

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2025-01-21 09:14:43 +01:00
..
debian sys: bump version to 0.6.5-1 2024-12-05 08:32:47 +01:00
src sys: use correct pointer type for mkdtemp return value 2025-01-21 09:14:43 +01:00
tests run cargo fmt 2024-06-24 10:02:31 +02:00
Cargo.toml sys: bump version to 0.6.5-1 2024-12-05 08:32:47 +01:00