svn commit: r244168 - head/usr.bin/calendar
Greg Lehey
grog at FreeBSD.org
Thu Dec 13 02:21:06 UTC 2012
Author: grog
Date: Thu Dec 13 02:21:05 2012
New Revision: 244168
URL: http://svnweb.freebsd.org/changeset/base/244168
Log:
Use even more conventional conversion routines.
Reported by: peterj@
Modified:
head/usr.bin/calendar/parsedata.c
Modified: head/usr.bin/calendar/parsedata.c
==============================================================================
--- head/usr.bin/calendar/parsedata.c Thu Dec 13 01:58:11 2012 (r244167)
+++ head/usr.bin/calendar/parsedata.c Thu Dec 13 02:21:05 2012 (r244168)
@@ -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);
More information about the svn-src-head
mailing list