Date: Wed, 4 Oct 2006 18:20:26 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/gpt add.c label.c remove.c Message-ID: <200610041820.k94IKQJt033611@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
marcel 2006-10-04 18:20:26 UTC
FreeBSD src repository
Modified files:
sbin/gpt add.c label.c remove.c
Log:
Use strtoll(3) instead of strtol(3) for the starting block or
partition size. On 32-bit platforms sizeof(long) < sizeof(off_t)
and using strtol(3) would prevent partitions larger than 4G
sectors or beyond 4G blocks.
PR: bin/103991
MFC after: 3 days
Revision Changes Path
1.15 +2 -2 src/sbin/gpt/add.c
1.3 +2 -2 src/sbin/gpt/label.c
1.10 +2 -2 src/sbin/gpt/remove.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610041820.k94IKQJt033611>
