-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
document-portal: Use portable formatting specifiers in debug strings
%lx was the correct, portable specifier for FUSE 2, where `fuse_ino_t` was declared as an unsigned long, but isn't correct any more for FUSE 3, which declares the inode number to be a 64-bit unsigned integer. This fixes crashes when running the xdg-document-portal binary on 32 bit architectures. Relatedly, also use proper format specifiers for `size_t` variables, and cast `off_t` to `goffset` in print statements, to use G_GOFFSET_FORMAT on them. Fixes: ede383e "document-portal: Use libfuse3 API". Signed-off-by: Alberto Mardegan <a.mardegan@omp.ru>
- Loading branch information
Showing
1 changed file
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters