From owner-freebsd-audit Fri Jun 29 8:26: 3 2001 Delivered-To: freebsd-audit@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 625BA37B408 for ; Fri, 29 Jun 2001 08:26:01 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id BAA28439; Sat, 30 Jun 2001 01:25:31 +1000 Date: Sat, 30 Jun 2001 01:23:33 +1000 (EST) From: Bruce Evans X-Sender: bde@besplex.bde.org To: Dima Dorfman Cc: Alexander Langer , Thomas Zenker , audit@FreeBSD.ORG Subject: Re: bin/27029: strptime: %s formatting missing (patch) In-Reply-To: <20010628235832.23EE83E2F@bazooka.unixfreak.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 28 Jun 2001, Dima Dorfman wrote: > Alexander Langer writes: > > Also sprach Thomas Zenker (thz@Lennartz-electronic.de): > > > + case 's': > > > + { > > > + time_t t; > > > + const char *cp; > > > + t = strtol(buf, &cp, 10); > > > > Is time_t long again on all branches? > > I think David (obrien) backed it out on -STABLE, IIRC. > > IIRC it's an int on most branches, but using strtol is still okay there. Except for the usual lack of error checking for strto*(). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message