Re: [PATCH] Btrfs-progs use safe string manipulation functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 10, 2011 at 12:08 PM, Thomas Bellman <bellman@xxxxxxxxxx> wrote:
> Â Âstrncpy(args.name, source, BTRFS_PATH_NAME_MAX);
> Â Âargs.name[BTRFS_PATH_NAME_MAX] = '\0';

That's silly. Isn't there a sane safe variant of strcpy?

Olaf
--
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


[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux