X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fpath-concat.c;h=abafd31ee7b4346353875ee20ce18d1f222a95ff;hb=140b7a20b7c376347dac834c95baee91af125394;hp=c7f041bbda1f1a8fe6cfd589bc1e191c35c99ba8;hpb=0f1677ef046efa671e65fbb05a204dfd5f2ee820;p=gnulib.git diff --git a/lib/path-concat.c b/lib/path-concat.c index c7f041bbd..abafd31ee 100644 --- a/lib/path-concat.c +++ b/lib/path-concat.c @@ -1,5 +1,5 @@ /* path-concat.c -- concatenate two arbitrary pathnames - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,7 @@ /* Written by Jim Meyering. */ -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H # include #endif @@ -26,6 +26,9 @@ #endif #include +#if HAVE_STRING_H +# include +#endif #include char *malloc (); @@ -63,7 +66,7 @@ path_concat (dir, base, base_in_result) if (base_in_result) *base_in_result = p; - mempcpy (p, base, base_len + 1); + memcpy (p, base, base_len + 1); return p_concat; }