From owner-freebsd-audit Sun Jan 23 20:52: 6 2000 Delivered-To: freebsd-audit@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id 7443315726; Sun, 23 Jan 2000 20:52:05 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 6628D1CD68B; Sun, 23 Jan 2000 20:52:05 -0800 (PST) (envelope-from kris@hub.freebsd.org) Date: Sun, 23 Jan 2000 20:52:05 -0800 (PST) From: Kris Kennaway To: Peter Jeremy Cc: audit@FreeBSD.ORG Subject: Re: libc patch to warn about tempfiles In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 23 Jan 2000, Kris Kennaway wrote: > + while (trv < suffp) { > + pid = (arc4random() % sizeof(padchar)); Oops, this should of course be strlen(padchar). > + *trv++ = padchar[pid]; > + } > + trv = start; Kris ---- "How many roads must a man walk down, before you call him a man?" "Eight!" "That was a rhetorical question!" "Oh..then, seven!" -- Homer Simpson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message