From 9588fe7b034f1b71b4244938d129fd3505e75feb Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 25 Mar 1996 21:07:47 +0000 Subject: (envz_merge): NEW_LEN is a size, not a char. --- libshouldbeinlibc/=envz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libshouldbeinlibc') 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 @@ -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); -- cgit v1.2.3