X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/cc8bc92ae4a8e9f1a1ab61bf83d34ad8150b3405..e8c3f78193f1895ea514044358b93b1add9322f3:/bsd/vfs/vfs_fslog.c diff --git a/bsd/vfs/vfs_fslog.c b/bsd/vfs/vfs_fslog.c index 6dbd62b93..87db6067f 100644 --- a/bsd/vfs/vfs_fslog.c +++ b/bsd/vfs/vfs_fslog.c @@ -75,7 +75,7 @@ fslog_extmod_msgtracer(proc_t caller, proc_t target) strlcat(c_name, "(", sizeof(c_name)); strlcat(c_name, uuidstr, sizeof(c_name)); strlcat(c_name, ")", sizeof(c_name)); - if (0 != escape_str(c_name, strlen(c_name), sizeof(c_name))) { + if (0 != escape_str(c_name, strlen(c_name) + 1, sizeof(c_name))) { return; } @@ -84,7 +84,7 @@ fslog_extmod_msgtracer(proc_t caller, proc_t target) strlcat(t_name, "(", sizeof(t_name)); strlcat(t_name, uuidstr, sizeof(t_name)); strlcat(t_name, ")", sizeof(t_name)); - if (0 != escape_str(t_name, strlen(t_name), sizeof(t_name))) { + if (0 != escape_str(t_name, strlen(t_name) + 1, sizeof(t_name))) { return; } #if DEBUG