Same net result as before, but with the stray-parenthesis fix moved to 2/4 where it belongs, rather than buried in 3/4. Thanks to Josef for the reviews. Also, I fixed this in 3/4: - args.name[BTRFS_PATH_NAME_MAX-1] = 0; + args.name[BTRFS_SUBVOL_NAME_MAX-1] = 0; [PATCHv2 1/4] mkfs: use strdup in place of strlen,malloc,strcpy [PATCHv2 2/4] restore: don't corrupt stack for a zero-length [PATCHv2 3/4] avoid several strncpy-induced buffer overruns [PATCHv2 4/4] mkfs: avoid heap-buffer-read-underrun for zero-length -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
