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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"