summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2012-12-13 02:21:05 +0000
committergrog <grog@FreeBSD.org>2012-12-13 02:21:05 +0000
commit63443f66106ad3d19b44ededfdb8f7eaffbbde39 (patch)
tree8dae7009b9a7c3f4e9d8307bffe7705ab58ddb28 /usr.bin
parentf042d5b8f0b13d59e8eb9091d1b2373e33570ca4 (diff)
downloadFreeBSD-src-63443f66106ad3d19b44ededfdb8f7eaffbbde39.zip
FreeBSD-src-63443f66106ad3d19b44ededfdb8f7eaffbbde39.tar.gz
Use even more conventional conversion routines.
Reported by: peterj@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/calendar/parsedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/calendar/parsedata.c b/usr.bin/calendar/parsedata.c
index 4d45385..4ece663 100644
--- a/usr.bin/calendar/parsedata.c
+++ b/usr.bin/calendar/parsedata.c
@@ -943,7 +943,7 @@ indextooffset(char *s)
char *es;
if (s[0] == '+' || s[0] == '-') {
- i = strtod (s, &es);
+ i = strtol (s, &es, 10);
if (*es != '\0') /* trailing junk */
errx (1, "Invalid specifier format: %s\n", s);
return (i);
OpenPOWER on IntegriCloud