I added two new #defines called TLDR_ZIP_DIR and TLDR_ZIP_DIR_LEN, used them in update_localdb and changed TLDR_DIR back.
Why the change?
While the directory in the ZIP has this different name, we assume the name of the extracted directory, for example in TLDR_EXT, to be tldr. This is what caused the segfaults.
What does it do?
I added two new
#define
s calledTLDR_ZIP_DIR
andTLDR_ZIP_DIR_LEN
, used them inupdate_localdb
and changedTLDR_DIR
back.Why the change?
While the directory in the ZIP has this different name, we assume the name of the extracted directory, for example in
TLDR_EXT
, to betldr
. This is what caused the segfaults.How can this be tested?
Try reproducing #71 or #74.