]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a filter name of the writing filter program.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 7 Oct 2012 01:58:43 +0000 (10:58 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 7 Oct 2012 01:58:43 +0000 (10:58 +0900)
libarchive/archive_write_add_filter_program.c

index 4533e4da151d58b1ffd823d757edbb41b7f8447a..149a211b644823dcb9164cda29526de78d6d13e8 100644 (file)
@@ -213,7 +213,7 @@ write_add_filter_programv(struct archive *_a, const char *cmd,
        if (archive_string_ensure(&data->description, l) == NULL)
                goto memerr;
        archive_strcpy(&data->description, prefix);
-       archive_strcpy(&data->description, cmd);
+       archive_strcat(&data->description, cmd);
        for (i = 0; argv[i] != NULL; i++) {
                archive_strappend_char(&data->description, ' ');
                archive_strcat(&data->description, data->argv[i]);