]> git.ipfire.org Git - thirdparty/util-linux.git/commit - misc-utils/cal.c
cal: limit year to 32 bit value
authorSami Kerola <kerolasa@iki.fi>
Wed, 15 Jan 2014 20:15:51 +0000 (20:15 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 6 Feb 2014 15:55:22 +0000 (16:55 +0100)
commit4a7424a5ef35f119dfabc95abf80e97eb74ed5f9
treeba9c31f2232862675a17e2e6be1b49083abe864d
parentc7a96884eb10997286233527fcd4dcaa64d72853
cal: limit year to 32 bit value

This is done to keep things simple, when considering tests, for both 64
and 32 bit architectures.  Setting the upper limit of a year value to to
2^31-1 (2147483646) should be enough for anyone.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Reference: http://www.spinics.net/lists/util-linux-ng/msg08662.html
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/cal.c