summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-25 21:07:47 +0000
committerMiles Bader <miles@gnu.org>1996-03-25 21:07:47 +0000
commit9588fe7b034f1b71b4244938d129fd3505e75feb (patch)
tree5dff87f0e8e022a7633c6013d39f5401d4203965
parentc8123df1eeca0060550c131eca0082889396a4b4 (diff)
(envz_merge): NEW_LEN is a size, not a char.
-rw-r--r--libshouldbeinlibc/=envz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libshouldbeinlibc/=envz.c b/libshouldbeinlibc/=envz.c
index 95140087..4d0816e4 100644
--- a/libshouldbeinlibc/=envz.c
+++ b/libshouldbeinlibc/=envz.c
@@ -1,6 +1,6 @@
/* Routines for dealing with '\0' separated environment vectors
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -134,7 +134,7 @@ envz_merge (char **envz, unsigned *envz_len, char *envz2, unsigned envz2_len,
while (envz2_len && ! err)
{
char *old = envz_entry (*envz, *envz_len, envz2);
- char new_len = strlen (envz2) + 1;
+ size_t new_len = strlen (envz2) + 1;
if (! old)
err = argz_append (envz, envz_len, envz2, new_len);