Skip to content
Snippets Groups Projects
Commit a2110bfc authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include archive_error_string() in archive_write_header failure msg

Hopefully this helps get to the bottom of Ragnarok's reported problem creating ZIP QWK files with libarchive.
parent 2245523d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2369 passed
......@@ -786,7 +786,7 @@ long create_archive(const char* archive, const char* format
archive_entry_set_filetype(entry, AE_IFREG);
archive_entry_set_perm(entry, 0644);
if((result = archive_write_header(ar, entry)) != ARCHIVE_OK)
safe_snprintf(error, maxerrlen, "archive_write_header returned %d", result);
safe_snprintf(error, maxerrlen, "archive_write_header returned %d: %s", result, archive_error_string(ar));
else while(!feof(fp)) {
char buf[256 * 1024];
size_t len = fread(buf, 1, sizeof(buf), fp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment