archivers/zip.c
changeset 39 bc29e1ee7ef6
parent 37 768c8484b0cd
child 41 ff60d39d0862
--- a/archivers/zip.c	Mon Jul 16 10:32:12 2001 +0000
+++ b/archivers/zip.c	Mon Jul 16 14:36:02 2001 +0000
@@ -162,7 +162,7 @@
         } /* else */
 
         l = (LinkedStringList *) malloc(sizeof (LinkedStringList));
-        if (l != NULL)
+        if (l == NULL)
             break;
 
         l->str = (char *) malloc(strlen(ptr) + 1);
@@ -172,6 +172,8 @@
             break;
         } /* if */
 
+        strcpy(l->str, ptr);
+
         if (retval == NULL)
             retval = l;
         else