Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/amachronic/microtar.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2021-11-05 03:39:54 +0300
committerAidan MacDonald <amachronic@protonmail.com>2021-11-05 18:16:14 +0300
commit8b10115479c20e7f56f5fb438bcfe6151ef9e062 (patch)
tree79d474d7722b2983db59c5866324add639948a91
parent665c1c2f7f74178c16eb3a3ef0a7bf9afd25ecd8 (diff)
Fix a typo
-rw-r--r--src/microtar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/microtar.c b/src/microtar.c
index ea72867..e02cf5d 100644
--- a/src/microtar.c
+++ b/src/microtar.c
@@ -214,7 +214,7 @@ static int header_to_raw(char* raw, const mtar_header_t* h)
raw[TYPE_OFF] = h->type ? h->type : MTAR_TREG;
strncpy(&raw[NAME_OFF], h->name, NAME_LEN);
- strncpy(&raw[LINKNAME_OFF], h->linkname, NAME_LEN);
+ strncpy(&raw[LINKNAME_OFF], h->linkname, LINKNAME_LEN);
/* Calculate and write checksum */
chksum = checksum(raw);