diff --git a/vendored/libfuse/util/fusermount.cpp b/vendored/libfuse/util/fusermount.cpp index 0325fae7..299d13cd 100644 --- a/vendored/libfuse/util/fusermount.cpp +++ b/vendored/libfuse/util/fusermount.cpp @@ -992,7 +992,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd) return -1; } - sprintf(procfile, "/proc/self/fd/%i", *mountpoint_fd); + snprintf(procfile,sizeof(procfile),"/proc/self/fd/%i",*mountpoint_fd); *mntp = procfile; } else { fprintf(stderr,