Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ update_localdb(int verbose)
outlen = 0;
if (sstrncat(tmp, &outlen, STRBUFSIZ, outpath, strlen(outpath)))
return 1;
if (sstrncat(tmp, &outlen, STRBUFSIZ, TLDR_DIR, TLDR_DIR_LEN))
if (sstrncat(tmp, &outlen, STRBUFSIZ, TLDR_ZIP_DIR, TLDR_ZIP_DIR_LEN))
return 1;

homedir = gethome();
Expand Down
5 changes: 4 additions & 1 deletion src/tldr.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@
#define TMP_FILE "/main.zip"
#define TMP_FILE_LEN (sizeof(TMP_FILE) - 1)

#define TLDR_DIR "/tldr-main" // this is the name of the directory inside `main.zip`
#define TLDR_ZIP_DIR "/tldr-main"
#define TLDR_ZIP_DIR_LEN (sizeof(TLDR_ZIP_DIR) - 1)

#define TLDR_DIR "/tldr"
#define TLDR_DIR_LEN (sizeof(TLDR_DIR) - 1)

#define TLDR_HOME "/.tldrc"
Expand Down