From: Richard Hirst <rhirst@linuxcare.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] efibootmgr-0.3.3 release
Date: Mon, 06 Aug 2001 15:10:03 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590693006001@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590693006000@msgid-missing>
On Fri, Aug 03, 2001 at 05:21:36PM -0500, Matt_Domsch@Dell.com wrote:
> New release efibootmgr 0.3.3 is now available at
> http://domsch.com/linux/ia64/efibootmgr-0.3.3.tar.gz.
Goes bang for me... assuming efichar_strlen() is supposed to return
the length in efichars, not bytes, the following fixes it. In any case
a null is needed on the end of buffer[].
Richard
--- efibootmgr-0.3.3/src/lib/efichar.c- Mon Aug 6 16:48:40 2001
+++ efibootmgr-0.3.3/src/lib/efichar.c Mon Aug 6 16:54:29 2001
@@ -36,11 +36,12 @@
char *buffer;
int s2_len = efichar_strlen(s2, -1);
- buffer = malloc(s2_len / sizeof(efi_char16_t));
+ buffer = malloc(s2_len+1);
if (!buffer) return -1;
for (i=0; i<(s2_len); i++) {
buffer[i] = s2[i] & 0xFF;
}
+ buffer[i] = '\0';
rc = strcmp(s1, buffer);
free(buffer);
return rc;
next prev parent reply other threads:[~2001-08-06 15:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-03 22:21 [Linux-ia64] efibootmgr-0.3.3 release Matt_Domsch
2001-08-06 15:10 ` Richard Hirst [this message]
2001-08-06 15:19 ` Matt_Domsch
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=marc-linux-ia64-105590693006001@msgid-missing \
--to=rhirst@linuxcare.com \
--cc=linux-ia64@vger.kernel.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.