-
-/*
- * concat.c -- concatenate a variable number (minimum of 1)
+/* concat.c -- concatenate a variable number (minimum of 1)
* of strings in managed memory
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
dp = sp = mh_xmalloc(len);
- sp = copy(s1, sp);
+ sp = stpcpy(sp, s1);
va_start(list, s1);
while ((cp = va_arg (list, char *)))
- sp = copy(cp, sp);
+ sp = stpcpy(sp, cp);
va_end(list);
return dp;