Typo.
authorjbj <devnull@localhost>
Fri, 19 Feb 1999 15:23:34 +0000 (15:23 +0000)
committerjbj <devnull@localhost>
Fri, 19 Feb 1999 15:23:34 +0000 (15:23 +0000)
CVS patchset: 2812
CVS date: 1999/02/19 15:23:34

lib/cpio.c

index 2435e64..ae40dd4 100644 (file)
@@ -357,7 +357,7 @@ static int expandRegular(CFD_t * cfd, struct cpioHeader * hdr,
     /* Rename the old file before attempting unlink to avoid EBUSY errors */
     if (!lstat(hdr->path, &sb)) {
        strcpy(buf, hdr->path);
-       strcpy(buf, "-RPMDELETE");
+       strcat(buf, "-RPMDELETE");
        if (rename(hdr->path, buf)) {
            fprintf(stderr, _("can't rename %s to %x: %s\n"),
                hdr->path, buf, strerror(errno));