From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA13094; Tue, 30 Sep 2003 00:23:56 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA04797 for ; Tue, 30 Sep 2003 00:23:55 +0200 (MET DST) Received: from mattam.ath.cx (f15v-3-18.d1.club-internet.fr [212.195.194.18]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h8TMNsH10914 for ; Tue, 30 Sep 2003 00:23:54 +0200 (MET DST) Received: (qmail 985 invoked from network); 29 Sep 2003 22:33:50 -0000 Received: from unknown (HELO mat) (192.168.0.1) by 192.168.0.254 with RC4-MD5 encrypted SMTP; 29 Sep 2003 22:33:50 -0000 From: Matthieu Sozeau Organization: /home To: caml-list@inria.fr Subject: Re: [Caml-list] Printing text with holes Date: Tue, 30 Sep 2003 00:23:49 +0200 User-Agent: KMail/1.5.2 References: <20030929215234.GA15095@redhat.com> <20030929220740.GA31853@ontosoft.com> In-Reply-To: <20030929220740.GA31853@ontosoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309300023.52062.mattam@altern.org> X-Loop: caml-list@inria.fr X-Spam: no; 0.00; matthieu:01 altern:01 caml-list:01 yankowski:01 gcc:01 printf:01 scanf:01 gcc:01 2.95.4:01 printf:01 permissive:01 -wall:01 matthieu:01 ath:99 sep:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Tuesday 30 September 2003 00:07, Fred Yankowski wrote: > On Mon, Sep 29, 2003 at 10:52:34PM +0100, Richard Jones wrote: > > On this one small point, people who have been using gcc have had > > type safe printf/scanf for at least the last 15 years. > > What do you mean? Compiling the following with gcc 2.95.4 and > executing it causes a seg fault on my Linux 2.4.20 system: > > main() { printf("%s", 'a'); } gcc is permissive by default, use -Wall ! -- Matthieu Sozeau www: http://mattam.ath.cx ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners