From: Jakub Jelinek <jakub@redhat.com>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Glibc hackers <libc-hacker@sources.redhat.com>
Subject: [PATCH] map_v4v6_address
Date: Tue, 21 Nov 2006 12:18:00 -0000 [thread overview]
Message-ID: <20061121121815.GI3849@sunsite.mff.cuni.cz> (raw)
Hi!
src is const char * (and furthermore not necessarily equal to dst).
I wonder if you don't want to copy to dst + 12 (or p + 12, which is
the same thing) instead.
2006-10-21 Jakub Jelinek <jakub@redhat.com>
* resolv/mapv4v6addr.h (map_v4v6_address): Fix last change.
--- libc/resolv/mapv4v6addr.h.jj 2006-11-21 13:08:02.000000000 +0100
+++ libc/resolv/mapv4v6addr.h 2006-11-21 13:10:02.000000000 +0100
@@ -59,7 +59,7 @@ map_v4v6_address (const char *src, char
int i;
/* Move the IPv4 part to the right position. */
- memcpy (src + 12, src, INADDRSZ);
+ memcpy (dst + 12, src, INADDRSZ);
/* Mark this ipv6 addr as a mapped ipv4. */
for (i = 0; i < 10; i++)
Jakub
reply other threads:[~2006-11-21 12:18 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20061121121815.GI3849@sunsite.mff.cuni.cz \
--to=jakub@redhat.com \
--cc=drepper@redhat.com \
--cc=libc-hacker@sources.redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).