]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Mon, 24 May 2004 18:12:23 +0000 (18:12 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 24 May 2004 18:12:23 +0000 (18:12 +0000)
2004-05-24  Ulrich Drepper  <drepper@redhat.com>

* manual/string.texi (Copying and Concatenation): Fixed second
concat example.
Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.

ChangeLog
manual/string.texi

index 96216a911716d13dc61c94b888317829ca2b078e..9605545b107ad22a7a65fa337129ccf51e3ced7c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-05-24  Ulrich Drepper  <drepper@redhat.com>
+
+       * manual/string.texi (Copying and Concatenation): Fixed second
+       concat example.
+       Reported by Fabian Pietsch <fabian@zzznowman.dyndns.org>.
+
 2004-05-23  Ulrich Drepper  <drepper@redhat.com>
 
        * malloc/obstack.c: Don't allow linking with _obstack.
index 8494799f5474ec4f930690135a03a92bd5022fc7..344c360efb63f8753e489c8e330b126d7af46755 100644 (file)
@@ -880,13 +880,13 @@ concat (const char *str, @dots{})
   va_list ap;
   size_t allocated = 100;
   char *result = (char *) malloc (allocated);
-  char *wp;
 
-  if (allocated != NULL)
+  if (result != NULL)
     @{
       char *newp;
+      char *wp;
 
-      va_start (ap, atr);
+      va_start (ap, str);
 
       wp = result;
       for (s = str; s != NULL; s = va_arg (ap, const char *))