summaryrefslogtreecommitdiff
path: root/string
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-20 06:37:56 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-20 06:37:56 +0000
commit9af652f60865624b4f44605c0c8bd4c23a18a2a7 (patch)
tree74905537f4aacd0ad0f819845808639df06d8612 /string
parent091b895531aabba1adc36ac6b68dd91ba52a0945 (diff)
downloadglibc-9af652f60865624b4f44605c0c8bd4c23a18a2a7.tar.gz
Update.
2001-08-19 Ulrich Drepper <drepper@redhat.com> * sunrpc/svcauth_des.c (_svcauth_des): Avoid using bcopy. * sunrpc/xdr_rec.c: Likewise. * sunrpc/xdr_mem.c: Likewise. * sunrpc/svc_authux.c (_svcauth_unix): Likewise. * sunrpc/rpc_cmsg.c: Likewise. * sunrpc/getrpcport.c (getrpcport): Likewise. * sunrpc/clnt_simp.c (callrpc): Likewise. * sunrpc/clnt_gen.c (clnt_create): Likewise. * string/envz.c: Likewise. * po/ko.po: Update from translation team. * argp/argp-help.c: Handle wide oriented stderr stream. * conform/conformtest.pl: <inttypes.h> test requires <stddef.h>.
Diffstat (limited to 'string')
-rw-r--r--string/envz.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/string/envz.c b/string/envz.c
index 83de595af9..3805b2c410 100644
--- a/string/envz.c
+++ b/string/envz.c
@@ -1,5 +1,5 @@
/* Routines for dealing with '\0' separated environment vectors
- Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997, 1998, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -104,9 +104,9 @@ envz_add (char **envz, size_t *envz_len, const char *name, const char *value)
if (new_envz)
{
- bcopy (name, new_envz + old_envz_len, name_len);
+ memcpy (new_envz + old_envz_len, name, name_len);
new_envz[old_envz_len + name_len] = SEP;
- bcopy (value, new_envz + old_envz_len + name_len + 1, value_len);
+ memcpy (new_envz + old_envz_len + name_len + 1, value, value_len);
new_envz[new_envz_len - 1] = 0;
*envz = new_envz;
@@ -163,7 +163,7 @@ envz_strip (char **envz, size_t *envz_len)
left -= entry_len;
if (! index (entry, SEP))
/* Null entry. */
- bcopy (entry, entry + entry_len, left);
+ memmove (entry + entry_len, entry, left);
else
entry += entry_len;
}