]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3 lib system: Change signature of sys_proc_fd_path
authorGary Lockyer <gary@catalyst.net.nz>
Tue, 9 Feb 2021 01:07:53 +0000 (14:07 +1300)
committerJeremy Allison <jra@samba.org>
Tue, 9 Feb 2021 04:16:43 +0000 (04:16 +0000)
It's always called with sizeof(buf)

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Feb  9 04:16:43 UTC 2021 on sn-devel-184

source3/include/proto.h
source3/lib/system.c

index 16cd587ed30ef7b97a10cd70b9ead15b71fd2b5f..ab42efeefd9830dcad2d35c66297cbe876c78162 100644 (file)
@@ -237,7 +237,7 @@ int sys_get_number_of_cores(void);
 #endif
 
 bool sys_have_proc_fds(void);
-const char *sys_proc_fd_path(int fd, char *buf, int bufsize);
+const char *sys_proc_fd_path(int fd, char *buf, size_t bufsize);
 
 struct stat;
 void init_stat_ex_from_stat (struct stat_ex *dst,
index 09bdf1fa7283b8afa23ec7208100f948a282ac4d..ad525737c5b5f27ed23ceeac00fbaef853c2321a 100644 (file)
@@ -1068,7 +1068,7 @@ bool sys_have_proc_fds(void)
        return have_proc_fds;
 }
 
-const char *sys_proc_fd_path(int fd, char *buf, int bufsize)
+const char *sys_proc_fd_path(int fd, char *buf, size_t bufsize)
 {
        int written;