diff options
author | grog <grog@FreeBSD.org> | 2012-12-13 02:21:05 +0000 |
---|---|---|
committer | grog <grog@FreeBSD.org> | 2012-12-13 02:21:05 +0000 |
commit | 63443f66106ad3d19b44ededfdb8f7eaffbbde39 (patch) | |
tree | 8dae7009b9a7c3f4e9d8307bffe7705ab58ddb28 /usr.bin | |
parent | f042d5b8f0b13d59e8eb9091d1b2373e33570ca4 (diff) | |
download | FreeBSD-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.c | 2 |
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); |