All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: Small Bug in grub-core/partmap/amiga.c
Date: Fri, 31 Dec 2010 15:08:12 +0100	[thread overview]
Message-ID: <4D1DE3CC.4040909@gmail.com> (raw)
In-Reply-To: <201012300629.oBU6TcSp022378@m5p.com>

[-- Attachment #1: Type: text/plain, Size: 988 bytes --]

On 12/30/2010 07:29 AM, ehem+grub@m5p.com wrote:
> Alas, AmigaOS has mostly passed beyond the veil, but one can still find
> small bugs sometimes:
>   
BTW, Amiga partmap and filesystems support in GRUB is for AROS, not Amiga.
> === modified file 'grub-core/partmap/amiga.c'
> --- grub-core/partmap/amiga.c	2010-03-26 14:44:13 +0000
> +++ grub-core/partmap/amiga.c	2010-12-30 06:25:26 +0000
> @@ -87,7 +87,7 @@
>        if (grub_disk_read (disk, pos, 0, sizeof (rdsk), &rdsk))
>  	return grub_errno;
>  
> -      if (grub_strcmp ((char *) rdsk.magic, "RDSK") == 0)
> +      if (grub_strncmp ((char *) rdsk.magic, "RDSK", sizeof(rdsk.magic)) == 0)
>  	{
>  	  /* Found the first PART block.  */
>  	  next = grub_be_to_cpu32 (rdsk.partitionlst);
>
>
> I both like and dislike using strcmp() for this purpose. I kind of like
> keeping it as a string, but strcmp()...   Anyway, minimal solution.
>
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

      parent reply	other threads:[~2010-12-31 14:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-30  6:29 Small Bug in grub-core/partmap/amiga.c ehem+grub
2010-12-31 13:56 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-12-31 14:08 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D1DE3CC.4040909@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.