diff options
Diffstat (limited to 'Build/source/texk/kpathsea/concatn.c')
-rw-r--r-- | Build/source/texk/kpathsea/concatn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/texk/kpathsea/concatn.c b/Build/source/texk/kpathsea/concatn.c index 216eedfdf7d..eebce152711 100644 --- a/Build/source/texk/kpathsea/concatn.c +++ b/Build/source/texk/kpathsea/concatn.c @@ -25,16 +25,18 @@ and then do the copying ourselves, but I doubt it matters in reality. */ string -concatn PVAR1C(const_string, str1, ap) +concatn (const_string str1, ...) { string arg; string ret; + va_list ap; if (!str1) return NULL; ret = xstrdup (str1); + va_start (ap, str1); while ((arg = va_arg (ap, string)) != NULL) { string temp = concat (ret, arg); @@ -44,7 +46,7 @@ concatn PVAR1C(const_string, str1, ap) va_end (ap); return ret; -}} +} #ifdef TEST int |