bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Crash when generating 2-sided db


From: Jim Segrave
Subject: Re: [Bug-gnubg] Crash when generating 2-sided db
Date: Thu, 12 Dec 2002 16:54:05 +0100
User-agent: Mutt/1.4i

On Thu 12 Dec 2002 (16:43 +0100), Holger wrote:
> At 16:31 12.12.2002 +0100, Holger wrote:
> >At 15:03 12.12.2002 +0000, Joern Thyssen wrote:
> >>It's hard to say what goes wrong if I can't see a dump analysis with
> >>gdb. 
> >
> >I'm in the process of debugging.
> >
> >So far I can tell that it crashes here:
> >
> >    fprintf ( stderr,
> >              _("Two-sided database:\n"
> 
> OK, solved. It just should be printf (without f).
> 
> Of course, I didn't see it right away, too. But, (how) does this run on
> *NIX???

How can that change work?

the prototype for fprintf is:

int fprintf  (FILE *fp, const char *format, ...);

the prototype for printf is:
int printf (const char *format, ...);


stderr is a FILE *, not a const char *

changing fprintf to printf should cause a compiler error on any C
compliant system - this is not a Unixism.

-- 
Jim Segrave           address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]