master hovercats/oakiss / pkg / fuse / patch / 0005-Fix-sscanf-format-specifier.patch
 1From b556d59ad2ffa73e4baa4c8345210c70a255296a Mon Sep 17 00:00:00 2001
 2From: Michael Forney <mforney@mforney.org>
 3Date: Mon, 6 Sep 2021 23:26:54 -0700
 4Subject: [PATCH] Fix sscanf format specifier
 5
 6---
 7 lib/mount_util.c | 2 +-
 8 1 file changed, 1 insertion(+), 1 deletion(-)
 9
10diff --git a/lib/mount_util.c b/lib/mount_util.c
11index 35e9948..85ab119 100644
12--- a/lib/mount_util.c
13+++ b/lib/mount_util.c
14@@ -360,7 +360,7 @@ int fuse_mnt_parse_fuse_fd(const char *mountpoint)
15 	int fd = -1;
16 	int len = 0;
17 
18-	if (sscanf(mountpoint, "/dev/fd/%u%n", &fd, &len) == 1 &&
19+	if (sscanf(mountpoint, "/dev/fd/%d%n", &fd, &len) == 1 &&
20 	    len == strlen(mountpoint)) {
21 		return fd;
22 	}
23-- 
242.32.0
25