Re: amiga-fdisk 0.4 and debian/potato boot floppies.
- To: Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>
- Cc: debian-68k@lists.debian.org, debian-boot@lists.debian.org, debian-powerpc@lists.debian.org, stepan@linux.de, Frank.Neumann@informatik.uni-oldenburg.de
- Subject: Re: amiga-fdisk 0.4 and debian/potato boot floppies.
- From: Sven LUTHER <luther@dpt-info.u-strasbg.fr>
- Date: Tue, 25 Jan 2000 16:48:33 +0100
- Message-id: <[🔎] 20000125164833.A11970@dpt-info.u-strasbg.fr>
- Mail-followup-to: Roman Hodek <Roman.Hodek@informatik.uni-erlangen.de>, debian-68k@lists.debian.org, debian-boot@lists.debian.org, debian-powerpc@lists.debian.org, stepan@linux.de, Frank.Neumann@informatik.uni-oldenburg.de
- Reply-to: luther@dpt-info.u-strasbg.fr
- In-reply-to: <[🔎] 200001251518.QAA14776@faui22c.informatik.uni-erlangen.de>; from Roman.Hodek@informatik.uni-erlangen.de on Tue, Jan 25, 2000 at 04:18:05PM +0100
- References: <[🔎] 20000125150659.A10552@dpt-info.u-strasbg.fr> <[🔎] 200001251439.PAA14396@faui22c.informatik.uni-erlangen.de> <[🔎] 20000125155359.C11475@dpt-info.u-strasbg.fr> <[🔎] 200001251518.QAA14776@faui22c.informatik.uni-erlangen.de>
On Tue, Jan 25, 2000 at 04:18:05PM +0100, Roman Hodek wrote:
>
> > This doesn't check the bounds also, isn't it ?
>
> It is:
>
> > + fgets (buffer, sizeof(buffer), stdin);
>
> Note the "sizeof(buffer)" !
>
> > And is gets not implemented as fgets (stdin) ?
>
> Not really. gets() is similar, but cannot check for a buffer overrun
> (because it has no SIZE argument), and always works on stdin.
Ok thanks,
I wanted to ask you something else, but forgot, ... :(((
Friendly,
Sven LUTHER
Reply to: